How to despawn a projectile when it gets near the player?
I'm trying to create a homing projectile that that despawns when it gets close to the actor. Using the first person template as a base I've managed to modify the projectile to home towards the player when it spawns, but I can't work out how to despawn it when it gets within 10 metres.
Here is the code snippet I've tried. It is supposed to run when the projectile spawns and check if it is within 10 metres every tick. Any idea what I'm doing wrong?
asked Jul 22 '16 at 01:03 PM in Using UE4
Ok lets see.
You can also check out this tutorial to get some ideas (for collision handling and so): https://wiki.unrealengine.com/Grappling_Hook_Tutorial
This thread also handles some problems you probably will run into: https://answers.unrealengine.com/questions/108664/how-can-i-make-a-grappling-hook.html
hth :) Marooney
Follow this question
Once you sign in you will be able to subscribe for any updates here