Difference between revisions of "GetCurrentAIProcedure"
Jump to navigation
Jump to search
imported>Maturin |
imported>Khadir (Documenting actor functions ... + wikifying) |
||
Line 1: | Line 1: | ||
{{ActorFunction}} | |||
'''Syntax:''' | '''Syntax:''' | ||
''ActorID | [''ActorID''.]GetCurrentAIProcedure | ||
GetCurrentAIProcedure returns the following values for procedure types: | GetCurrentAIProcedure returns the following values for procedure types: | ||
{| width="100%" border="0" cellpadding="5" cellspacing="0" | |||
|- | |||
| width="25%"| | |||
:0 = TRAVEL | :0 = TRAVEL | ||
:1 = ACTIVATE | :1 = ACTIVATE | ||
Line 14: | Line 18: | ||
:8 = SLEEP | :8 = SLEEP | ||
:9 = OBSERVE_COMBAT | :9 = OBSERVE_COMBAT | ||
| width="25%"| | |||
:10 = EAT | :10 = EAT | ||
:11 = FOLLOW | :11 = FOLLOW | ||
Line 24: | Line 29: | ||
:18 = YIELD | :18 = YIELD | ||
:19 = TRAVEL_TARGET | :19 = TRAVEL_TARGET | ||
| width="25%"| | |||
:20 = CREATE_FOLLOW | :20 = CREATE_FOLLOW | ||
:21 = GET_UP | :21 = GET_UP | ||
Line 34: | Line 40: | ||
:28 = USE_ITEM_AT | :28 = USE_ITEM_AT | ||
:29 = VAMPIRE_FEED | :29 = VAMPIRE_FEED | ||
| width="25%"| | |||
:30 = WAIT_AMBUSH | :30 = WAIT_AMBUSH | ||
:31 = SURFACE | :31 = SURFACE | ||
Line 44: | Line 51: | ||
:38 = SUMMON_DEFEND | :38 = SUMMON_DEFEND | ||
:39 = MOVEMENT_BLOCKED_WAIT | :39 = MOVEMENT_BLOCKED_WAIT | ||
|} | |||
Note that the procedure is not the same as the current package. A single package can contain several possible procedures, depending on what the actor is currently doing. For example, while in a Travel package, an actor will do the Travel procedure (when the actor is moving towards its target) and then the Wait procedure (when the actor has arrived at the travel destination). A procedure may also not be related to the underlying package -- fallout behavior causes the actor to begin a new procedure without changing its package. | Note that the procedure is not the same as the current package. A single package can contain several possible procedures, depending on what the actor is currently doing. For example, while in a Travel package, an actor will do the Travel procedure (when the actor is moving towards its target) and then the Wait procedure (when the actor has arrived at the travel destination). A procedure may also not be related to the underlying package -- fallout behavior causes the actor to begin a new procedure without changing its package. |
Revision as of 04:47, 28 June 2006
Template:ActorFunction Syntax:
[ActorID.]GetCurrentAIProcedure
GetCurrentAIProcedure returns the following values for procedure types:
|
|
|
|
Note that the procedure is not the same as the current package. A single package can contain several possible procedures, depending on what the actor is currently doing. For example, while in a Travel package, an actor will do the Travel procedure (when the actor is moving towards its target) and then the Wait procedure (when the actor has arrived at the travel destination). A procedure may also not be related to the underlying package -- fallout behavior causes the actor to begin a new procedure without changing its package.