ENTITIES
Entities
represent the computer controlled players within the AI system and
they will move and react according to their surroundings and the
values of their parameters. These parameters can be set using
commands beginning AI Set Entity ___
and retrieved using AI Get Entity ___ and
usually have no immediate impact on the entity until an event occurs
that they need to react to, such as discovering an enemy. The
commands beginning AI Entity ___
are more like commands to the entity to tell it to do something and
usually have an immediate effect on the entity's movement, depending
on their current mode.
Entities have two main
modes of operation, automatic mode and manual mode. The
default is automatic mode where an entity will react according to its
stance, which can be one of Run Away, Stationary, Cautious, or
Aggressive (see AI Set Entity Stance). In manual mode
you are free to instruct the entity to behave and move where you want
by using the range of manual mode commands, which provide much of the
functionality that automatic mode uses to move entities around.
In
both modes entities automatically avoid obstacles and other entities
in their current container when moving about, without a need for a
separate collision system. However, dynamic obstacles such as crates
should not be added to the AI system, instead use an external
collision/physics system to detect collisions with dynamic obstacles
and use AI Set Entity Collide.
Entities are grouped into three teams, the player's
team, the enemy team, and a neutral team. The player's team help the
player by attacking enemies, enemies attack the player and its
allies. Neither will attack neutral entities, and neutral entities
will not attack anyone.