Unknown

From DarkAI

AI ENTITY DEFEND AREA

This command sets the entity into a defensive mode that will attempt to keep them within the specified area whilst still attacking any targets that come within range. The entity still allowed to perform normal evasive moves such as strafing but if it begins to leave the specified area it will automatically move itself back within the area.

This is an automatic mode command (see AI Set Entity Control)


Syntax
AI Entity Defend Area Entity Number, Position X#, Position Z#, Radius#

Parameters
Entity Number, The id of the entity you want to defend the area.
Position X#, The X component in world co-ordinates of the centre of the area to defend.
Position Z#, The Z component in world co-ordinates of the centre of the area to defend.
Radius#, The radius of the area you want the entity to defend, from the centre.

Return
n/a