Unknown
From DarkAI
AI
GET ENTITY ACTION$
This command gets a string
description of the entity's current action, such as moving or
attacking. This will tell you in which direction the entity is moving
and if it is currently in an attack state. If an entity is attacking
it may be shooting, if it is not attacking it will not be shooting.
This can be used to set the entity's animation to an appropriate
walking direction, or you can use AI Get Entity Move X( ) and
AI Get Entity Move Z( ) to calculate this yourself.
The
possible returned values are:
Stopped
Moving
Forwards
Moving Backwards
Strafing Left
Strafing
Right
Stopped And Attacking
Moving Forwards And
Attacking
Moving Backwards And Attacking
Strafing Left And
Attacking
Strafing Right And Attacking
Syntax
return
string = AI Get Entity Action$ ( Entity Number
)
Parameters
Entity Number, The id of the
entity to check.
Return
A string representing a
description of the current action.