Difference between revisions of "OnPackageEnd - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Terra Nova2
imported>Terra Nova2
m (Changed wording in the notes section for clarification.)
Line 23: Line 23:


== Notes ==
== Notes ==
*This can be used in a ReferenceAlias script, and works for the player that is currently controlled via [[SetPlayerAIDriven_-_Game|SetPlayerAIDriven]], and has finished a package.
*This can be used in a ReferenceAlias script attached to the player that is currently controlled via [[SetPlayerAIDriven_-_Game|SetPlayerAIDriven]], and has finished a package.


== See Also ==
== See Also ==

Revision as of 13:12, 24 February 2016

Member of: Actor Script

Event called when the actor finishes a package.

Syntax

Event OnPackageEnd(Package akOldPackage)

Parameters

  • akOldPackage: The Package that just stopped running.

Examples

Event OnPackageEnd(Package akOldPackage)
  Debug.Trace("We just stopped running the " + akOldPackage + " package")
endEvent


Notes

  • This can be used in a ReferenceAlias script attached to the player that is currently controlled via SetPlayerAIDriven, and has finished a package.

See Also