Difference between revisions of "GetCurrentAIProcedure"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Maturin
 
imported>Khadir
(Documenting actor functions ... + wikifying)
Line 1: Line 1:
{{ActorFunction}}
'''Syntax:'''  
'''Syntax:'''  
   ''ActorID.''GetCurrentAIProcedure  
   [''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:

0 = TRAVEL
1 = ACTIVATE
2 = AQUIRE
3 = WAIT
4 = DIALOGUE
5 = GREET
6 = GREET_DEAD
7 = WANDER
8 = SLEEP
9 = OBSERVE_COMBAT
10 = EAT
11 = FOLLOW
12 = ESCORT
13 = COMBAT
14 = ALARM
15 = PURSUE
16 = FLEE
17 = DONE
18 = YIELD
19 = TRAVEL_TARGET
20 = CREATE_FOLLOW
21 = GET_UP
22 = MOUNT_HORSE
23 = DISMOUNT_HORSE
24 = DO_NOTHING
25 = CAST_SPELL
26 = AIM
27 = ACCOMPANY
28 = USE_ITEM_AT
29 = VAMPIRE_FEED
30 = WAIT_AMBUSH
31 = SURFACE
32 = WAIT_FOR_SPELL
33 = CHOOSE_CAST
34 = FLEE_NON_COMBAT
35 = REMOVE_WORN_ITEMS
36 = SEARCH
37 = CLEAR_MOUNT_POSITION
38 = SUMMON_DEFEND
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.

See Also

GetCurrentAIPackage