Background for Skyrim SE
Member of the ObjectReference script

Description

Wiki Description

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

Documentation Comment

Event received when the lock on this object changes


Caveats

CK Wiki - Notes

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

Examples

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

Auto-Generated Example

Scriptname MyCoolScript extends ObjectReference

event OnLockStateChanged()
    Debug.trace("Event received - OnLockStateChanged")
endEvent

Related Pages


Additional References

View this event’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.