Background for Starfield
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


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 Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.