Unknown
From DarkAI
AI
GET ENTITY CONTAINER
This command will get the id
of the container that the entity is currently assigned to, note that
this is not the same as which container the entity may currently be
standing in as the AI system cannot tell where one container ends and
another begins. Use AI Set Entity Container
to tell the AI system when an entity has changed containers. By
default all entities are assign to container 0. If an entity has no
container it cannot be updated.
Syntax
return
integer = AI Get Entity Container ( Entity Number
)
Parameters
Entity Number, The id of the
entity for which you want to retrieve the container.
Return
The
id of the container the entity is assigned to. -1 if it has no
container.