GetCurrentPackage - Actor

Member of: Actor Script

Gets the Package this actor is currently running.

SyntaxEdit

Package Function GetCurrentPackage() native

ParametersEdit

None.

Return ValueEdit

The Package the actor's AI is currently running.

ExamplesEdit

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

See AlsoEdit