Unknown

From DarkAI

AI SET AVOID MODE

This command sets the avoidance mode for entities when two entities become closer than twice their radius apart. There are 4 modes to choose from,

No Avoidance (mode 3) entities will not avoid each other and are free to move through each other,

Delayed Update (mode 2) entities will avoid each other but only check for nearby entities only every so often, this can help increase the performance, compared with mode 1, when many entities are present but may result in some entities getting closer then normal or sometimes moving through each other.

Real-Time (mode 1) entities will avoid each other and check for other nearby entities every update, constantly changing positions can result in an entity jumping about as its movement direction changes every update. This was the only mode in the original release version and is default.

Smoothed (mode 0) entities will avoid each other as in mode 1 but their movement directions will be smoothed over 20 updates where rapid changes in movement is not desired. However, this may cause delays in movement when an entity has to make a rapid change of direction in normal circumstances.

This value can be changed whilst the system is in motion.

Syntax
AI Set Avoid Mode Mode

Parameters
Mode, The avoidance mode to use (0-3).

Return
n/a