GetIsCurrentPackage

From the CreationKit Wiki
Jump to navigation Jump to search

Syntax:

[ActorID.]GetIsCurrentPackage PackageID 

Example:

GetIsCurrentPackage AnvilGuardPatrolDay8x7

Returns 1 if the actor is currently running the specified package, 0 otherwise.


Notes:

  • This is only 100% reliable when there are no interrupt packages active.
  • Interrupt packages that override the current package with combat or flight (including crime detection/reaction) do not affect the results of this function. If an actor is running MyPackage and goes into combat, GetIsCurrentPackage MyPackage will still return true.

Papyrus Version[edit | edit source]

GetCurrentPackage - Actor