How to make a homing projectile
Hello, I have a projectile that I spawn from an AI, and I want it to home in randomly, on one of three cubes in the game. My issue isn't really making it random but getting it to have those cubes as its target automatically when the game begins. Any help?
asked Dec 19 '17 at 07:31 AM in Blueprint Scripting
You have to create an Actor (ex. Cube). Put instances of the Actor on the scene. GetAllActorsOfClass (Cube) and drag a Get, as Index drag off Random Interger In Range (Cube count -1 as max) then you can have a reference of the Cube Actor to be the target of the homing projectile.
answered Dec 19 '17 at 07:53 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here