GetCurrentPackage - Actor

From Creation Kit
Jump to: navigation, search

Member of: Actor Script

Gets the Package this actor is currently running.

Syntax

Package Function GetCurrentPackage() native

Parameters

None.

Return Value

The Package the actor's AI is currently running.

Examples

; Is Alice currently patrolling?
if (Alice.GetCurrentPackage() == PatrolProperty)
  Debug.Trace("Alice is patrolling")
endIf

See Also