How do I make a projectile automatically target a StaticMeshActor?
How do I make a projectile automatically target a StaticMeshActor? I don't want to target it myself, I want to target the nearest MeshActor to the projectile. I'm having a really hard time finding some help.
See how it targets the cup without actually pulling the trigger to target? EDIT: I solved it.
Uhm, you might be able to do this by creating a hitbox around the projectile that you shot and make the hitbox really big, then when it overlaps with the static mesh just lerp the projectile to the static mesh.
But if u want the projectile to go towards the target closest to the player. https://forums.unrealengine.com/community/work-in-progress/18694-alice-in-tokyo-wonderland-blueprint-only-action-hack-n-slash/page3?47183-Alice-in-Tokyo-Wonderland-Blueprint-Only-Action-Hack-n-Slash=&viewfull=1
Or maybe you could just make a line trace from the center of the screen and see what mesh is closest. I think you might need to make whatever mesh you wanna home in on, a bp.
Or maybe you could put an invis collision box infront of the player camera and whenever you shoot a projectile line trace to all the different hit able objects in the scene and if the line trace goes through the hit box then home into that object.
answered Aug 24 '17 at 08:36 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here