GetProcessLevel

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(processLevel:short) reference.GetProcessLevel

Returns the actor's current process level, or -1 if called on a non-actor. Process level determines how frequently the game updates an actor's AI. In general, high process actors are in the same cell as the player, while more distant actors are kept at a lower process level.


AI Process Level Codes

The following values are shorts that are used and/or returned by this function, as indicated by its Syntax. These values correspond to the listed AI process level:

 0	High
 1	Middle-high
 2	Middle-low
 3	Low