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?
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.
Could I get a shot of what the homing blueprint will look like, I can pretty much do the random bit if I get that.
Homing missile tutorial : [Unreal Engine 4.7] Homing Missile Blueprint Tutorial - YouTube