Unknown
From DarkAI
AI
SET ENTITY COLLIDE
Use this command to notify the
entity when it has collided with an object that is not in the AI
system, for example from an external collision or physics system. The
entity will move sideways for a brief period to try and avoid this
object, during which time AI Get Entity Avoiding
will return 1. Since the entity has no knowledge of the object's size
it may not succeed in going around it in one move. You should detect
when the entity has decided to stop avoiding and repeat the AI
Set Entity Collide command if
necessary.
This does not apply to objects set as obstacles or
entities in the AI system, the entity will avoid these
automatically.
Syntax
AI Set Entity Collide
Entity Number, Collide Object
Parameters
Entity
Number, The id of the entity that has hit something.
Collide
Object, The id of the object the entity has hit, 0 for
none.
Return
n/a