Unknown

From DarkAI

AI SET ENTITY DEFENDING

This command can be used to toggle the defend mode of the entity. When using the commands AI Entity Defend Area and AI Entity Follow Player the entity will remain in a defending state until the defend mode is set back to 0. This command will also remove the restriction on the entity from AI Entity Defend Point command and it be allowed to move about again.

This command can also be used to turn defending on, in which case the entity will act as if
AI Entity Defend Area had been called with no change to any previously set defend point and radius.

Syntax
AI Set Entity Defending Entity Number, Mode

Parameters
Entity Number, The id of the entity to set the defending state.
Mode, 1 to set the entity as defending, 0 to stop defending.

Return
n/a