GetCurrentAIPackage

From the CreationKit Wiki
Revision as of 07:15, 23 July 2018 by imported>DavidJCobb (command's functionality verified through disassembly)
Jump to navigation Jump to search

Identifies an actor's current AI procedure, and returns the number representing that procedure's type. Procedure numbers below are taken from the SKSE source code and from community reverse-engineering efforts in general.

Package types
Number Type
-1 Returned for any invalid type number, and for valid type numbers above 31.
0 Find
1 Follow
2 Escort
3 Eat
4 Sleep
5 Wander
6 Travel
7 Accompany
8 Use Item At
9 Ambush
10 Flee (not combat)
11 UseMagic
12 Sandbox
13 Patrol
14 Guard
15 Dialogue
16 UseWeapon
17 Find2
18 Package
19 Package Template
20 Activate
21 Alarm
22 Flee
23 Trespass
24 Spectator
25 React to Dead. (This is also used for vampirism: when any vampire (including the player) feeds on another actor, an AI package is created and the vampire is forced to execute it.)
26 Get Up From Chair
27 Do Nothing
28 In-Game Dialogue
29 Surface
30 Search for Attacker
31 Avoid Player