Download

RTS-like Enemy squad logic

Hey guys!

I’m trying to make an enemy AI that moves in squads, similar to standard RTS units. There won’t be selection or anything, just the enemies are spawned in groups and move in squads. I’ve done some research but I’m still not sure the best way(s) to approach this. What I currently have is a BP that has several fixed spawn points and on Begin Play it spawns units, each one controlled by a Behavior Tree. I’m not sure how to make them move together while still maintaining some flexibility (they can adjust to the NaviMesh for example, they’re not ‘rigid’).

Hope you guys can shed some light on this.
Thanks!