GetCurrentPackage - Actor

Revision as of 15:26, 18 October 2011 by imported>Vitamant (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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