Im trying to have an AI send out small squads and move them around the maps in proximity where they last saw the heroes. And move them around (not just standing there like critters).
Ive tried to use the defend region but whenever i try to give it waypoints (before "defending" that region) it just ignores them (which often leads them to walk straight into a base and die)
Any idea of how to accomplish this? (Not sure if this should go into triggering? Oh well!)
Not sure if this is what your looking for but this is how I make my units hunt the closest target
event-
Unit- any unit becomes idle
conditions-
owner of trigg unit = ?
triggering unit is excluded: heroic
Action-
Unit order (triggering Unit) to (attack targeting (position of (closest unit to (position of (triggering unit)) in (any units in (entire map) owned by player ? matching excluded: etc etc etc
another thing you could try is to set patrol orders
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Working on a Coop map with AI.
Im trying to have an AI send out small squads and move them around the maps in proximity where they last saw the heroes.
And move them around (not just standing there like critters).
Ive tried to use the defend region but whenever i try to give it waypoints (before "defending" that region) it just ignores them (which often leads them to walk straight into a base and die)
Any idea of how to accomplish this? (Not sure if this should go into triggering? Oh well!)
Not sure if this is what your looking for but this is how I make my units hunt the closest target
event-
Unit- any unit becomes idle
conditions-
owner of trigg unit = ?
triggering unit is excluded: heroic
Action-
Unit order (triggering Unit) to (attack targeting (position of (closest unit to (position of (triggering unit)) in (any units in (entire map) owned by player ? matching excluded: etc etc etc
another thing you could try is to set patrol orders