Lock on system not working on moving target
I have made a lock on system, but when i move the target in game by bumping into it (it is simulating physics) my character keeps looking at the begin position, even if the actor is destroyed or completely somewhere else. This is weird because i'm using the FindLookAtRotation node in a function connected to an Event Tick so it should update the target location right?
Also, when i have two enemies in the scene, i can only lock on one and with the other one the player turns to the enemy once but doesn't keep looking at it.
I have absolutely no idea what i'm doing wrong. It feels like i have tried everything.
Any help would be appreciated!
asked May 01 '19 at 10:17 AM in Blueprint Scripting
This is because the actor does not really move, the simulation is only moving the mesh. Make the mesh the root of the actor. Or use the mesh location with Find Look At.
Follow this question
Once you sign in you will be able to subscribe for any updates here