Talk:OnLockStateChanged - ObjectReference
Revision as of 11:40, 26 November 2023 by TwilightSky (talk | contribs) (→On calling Lock(): event will fire twice when unlocked via lockpicking)
On calling Lock()[edit source]
The note on the main page appears to misunderstand how this event works. Any change made to an object's lock state will trigger this event. If you lock it, this event fires. If you unlock it, same thing. This is intended behavior and it is not designed to store nor report the previous lock state. --TwilightSky (talk) 01:17, 12 November 2023 (EST)
- However, when a container's lock state is changed via lockpicking, this event will trigger twice. It is unknown why this happens. --TwilightSky (talk) 11:40, 26 November 2023 (EST)