Hello, I need help for how my enemy objects behave, the goal is for them to move to a specific object when they are spawned in and when that object is destroyed they will then swarm the player. Currently I am using the boids extension to help me with how they swarm, the only thing I’m missing is how do I get them to start targeting the player after the said object is destroyed. I have the enemy objects on a continuous action to move to the said object until it is destroyed.
1 Like
Perhaps you could link them to their respective “rally point” object, or maybe assign an id variable to both.
Then, when rally point object is destroyed, don’t delete it immediately. Just mark it with a “destroyed” variable or something.
Then make some events that goes,
if rallypoint is “destroyed”, take into account linked objects, target player.
1 Like
So I really can’t escape using variables
I’m thinking I might do it like When object 1 has been spawned > set alivestatus = true
when object 1 is destroyed set alivestatus = false
if variable alivestatus = false, move to player.
2 Likes