Hey there, in this video I will show you how to create a target lock system. Sword Asset by: Sarath K sketchfab.com/3d-models/fanta... Shield Asset by: Sergey Egelsky sketchfab.com/3d-models/shiel...
Пікірлер: 14
@neuralsixty38527 ай бұрын
There's a bug in your TargetLock event where you're checking isTargetLocked with a Branch. In case the Branch returns false, you're setting isTargetLocked before the Sphere Trace runs. This leads to a case where you have to press the input twice to make the target lock run again if the Sphere Trace fails to find any targets. To fix the bug, you have to set isTargetLocked only after the Sphere Trace succeeds and you set the new HitActor. Other than that, this is how I learned to do target locking, so nice blueprint. Cheers!
@aneskatzaev91522 ай бұрын
if u change the first branch with a flip flop a will be the one connected to the sphere trace and remove the check from the b istargetlocked the and it should work
@inuxys8 ай бұрын
nice and clean blueprint, thank you!
@lisowi.7 ай бұрын
Glad you found it helpful
@roydash565711 ай бұрын
I am needs this tutorial! Thank you so much you helping me
@aneskatzaev91522 ай бұрын
if u change the first branch with a flip flop a will be the one connected to the sphere trace and remove the check from the b istargetlocked the and it should work
@SHANE-jc2ln10 ай бұрын
Hey man amazing tut. But I have a problem, I can lock on and lock off but If I wanted to lock on again it wouldn't lock on again. Any fixes
@lisowi.9 ай бұрын
Hey there, you might have missed a bit, the code was working correctly for me I could toggle the lock on and off as many times as desired. Double-check and let me know.
@timestampterry48208 ай бұрын
in the beginning where there are two set is target locked you just want false checked and true not checked that should fix it if you did everything
@adrenalingames42087 ай бұрын
If the enemy is dead, it automatically switches to an empty space until I turn it off myself, everyone who has the target system, no one has fixed this bug. Any suggestions on how to turn it off when a mob dies?
@user-wr5fh1xg1d2 ай бұрын
Set a boolean for when enemy is dead and at the end, set the hit actor to false if enemy is dead
@garonbos14523 ай бұрын
THIS DOESNT WORK FOR ME
@gizil64873 ай бұрын
Because he does everything wrong and this is an example of how bug-mechanics are created in games..
@aneskatzaev91522 ай бұрын
if u change the first branch with a flip flop a will be the one connected to the sphere trace and remove the check from the b istargetlocked the and it should work