Unknown

From DarkAI

AI ENTITY FOLLOW PLAYER

This command tells the entity to follow and defend the player, as such this command is only for friendly entities that are allied with the player. If no player has been added or the entity is not allied with the player no change is made to the entity.

This command is similar to AI Entity Defend Area except that the defend position is constantly set to the player's current position. When the distance between the entity and the player exceeds the specified distance the entity will choose a point close to the player and move to it.

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


Syntax
AI Entity Follow Player Entity Number, Follow Distance#

Parameters
Entity Number, The id of the entity you want to follow the player.
Follow Distance#, The maximum distance you want the entity to be from the player.

Return
n/a