Difference between revisions of "OnLockStateChanged - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
(Created page with 'Category:Scripting Category:Papyrus Category:Events '''Member of:''' ObjectReference Script Event called when the lock on this object's state changes. (Locked, u…')
 
imported>Antares
(added info on behaviour of this event)
 
Line 22: Line 22:
endEvent
endEvent
</source>
</source>
== Notes ==
*Calling Lock() will trigger this event regardless of its previous "LockState".


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

Latest revision as of 21:54, 21 November 2012

Member of: ObjectReference Script

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

Syntax[edit | edit source]

Event OnLockStateChanged()

Parameters[edit | edit source]

None.

Examples[edit | edit source]

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

Notes[edit | edit source]

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


See Also[edit | edit source]