Unknown
From DarkAI
AI
ADD NEUTRAL
This command adds an entity to
the neutral team (will not fight) using the id that you specify. This
should be a non-zero positive integer, and not already be assigned to
an entity.
You can call this command with one, two or three
parameters:
The second parameter
allows you to link the entity with the Dark Basic object of the same
id, which will allow the AI system to move this object for you in
response to any entity movement. The AI system will move the object
in the X and Z directions and will not change the objects Y position.
If you choose to disabled it you can retrieve the AI entity position
with AI Get Entity X() and AI Get Entity Z() and use it
to position your own representation of the entity.
The
third parameter allows you to choose which container to assign the
entity to, the entity will be bound by the obstacles within the
specified container and will not automatically move to another
container. You can change an entity's container later by using AI
Set Entity Container command. If you are not using containers you
can ignore this value.
Syntax
AI Add
Neutral Entity Number
AI Add Neutral Entity Number, Use
Object
AI Add Neutral Entity Number, Use Object, Container
Number
Parameters
Entity Number, The id
you want to use to represent this entity, when set to use a Dark
Basic object this must be the same as the object id.
Use
Object, (optional) Set this to 1 to link the entity directly to
the Dark Basic object with the same id as the entity. Use 0 if you
want to create an entity that has no links to any objects. The
default value is 1.
Container Number, (optional) The id of
the container you want to add this entity to, the default value is
0.
Return
n/a