GetCurrentAIPackage

From the CreationKit Wiki
Jump to navigation Jump to search

Identifies an actor's current AI package, and returns the number representing that package's type.

Package numbers below are taken from the SKSE source code and from community reverse-engineering efforts in general. There is some overlap between package types and procedure types, given that procedures have only recently been made configurable; some package types exist just to execute a basic procedure.

Package/procedure 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.
26 Get Up From Chair
27 Do Nothing
28 In-Game Dialogue
29 Surface
30 Search for Attacker
31 Avoid Player

Notes[edit | edit source]