Unknown

From DarkAI

AI ENTITY ASSIGN PATROL PATH

This command assigns an existing path to the specified entity for use as a set of patrol points. If the specified path contains one or more points then the entity's idle state is replaced with a patrol state, such that whenever the entity would be idle, it now patrols along the points in the patrol path. Using this command with a path with no points will return the entity's idle state.

When the entity reaches the end of the path it returns to the first point and cycles around again. Any changes made to the path at the specified number instantly effect the patrol path of any entities using it as a patrol path.

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


Syntax
AI Entity Assign Patrol Path Entity Number, Path Number

Parameters
Entity Number, The id of the entity you want to assign the path to.
Path Number, The id of the path you want to assign to the entity.

Return
n/a