OnLockStateChanged - ObjectReference

From the CreationKit Wiki
Revision as of 21:54, 21 November 2012 by imported>Antares (added info on behaviour of this event)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ObjectReference Script

Event called when the lock on this object's state changes. (Locked, unlocked, level changed, etc)

Syntax

Event OnLockStateChanged()

Parameters

None.

Examples

Event OnLockStateChanged()
  if IsLocked()
    Debug.Trace("We are locked!")
  endIf
endEvent

Notes

  • Calling Lock() will trigger this event regardless of its previous "LockState".


See Also