Hi, I’m working on a game similar to a tf2 mod called dodgeball (reference video: Tf2 Dodgeball Bot - The road to 300 MPH - YouTube) in which there are 2 or more players and a homing rocket. The rocket chases after one particular player and that player has to then deflect the rocket by right clicking at the right time at which point the rocket turns around and chases after a player on the opposing team, speeding up with each deflect.
I have succeeded in creating a homing rocket which locks on to an object that I middle mouse while looking at using this tutorial video ([Unreal Engine 4.7] Homing Missile Blueprint Tutorial - YouTube) but I’m struggling to make it lock on to me and I can’t figure out how to get it to lock on to a an object which will represent the enemy. I also don’t know how I would go about changing the target of the rocket through blueprint. Any help would be appreciated as I’m a new programmer.
Here are some screenshots:
Thanks in advance!
EDIT: I’m thinking of just making a box collider appear in front of the player in a small radius and then it destroys itself after 0.5 seconds and if the missile comes within the collider within that time it changes the missiles target to the enemy or something along those lines. The problem is I don’t know how to change the target through blueprint.