OnPackageStart - Actor

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: Actor Script

Event called when the actor starts running a new package.

Syntax[edit | edit source]

Event OnPackageStart(Package akNewPackage)

Parameters[edit | edit source]

  • akNewPackage: The Package that just started running.

Examples[edit | edit source]

Event OnPackageStart(Package akNewPackage)
  Debug.Trace("We just started running the " + akNewPackage + " package")
endEvent

Notes[edit | edit source]

Notes[edit | edit source]

  • This can be used in a ReferenceAlias script, and works for the player that is currently controlled via SetPlayerAIDriven, and has started a package.

See Also[edit | edit source]