morrowind1979 Posted March 6, 2018 Share Posted March 6, 2018 (edited) I have made a door with a chain across it I want to make a script that disables the chain when the door is unlocked. This is as far as I have got: Scriptname EDChainUnlockScript extends ObjectReference ObjectReference Property CHN Auto ObjectReference Property TRPD Auto Event OnLockStateChanged() If (TRPD.IsLocked()) CHN.disable() EndIf EndEvent The problem is I cannot find the opposite version of Islocked. I have tried IsUnlocked, Islocked(false), Islocked(0), IsNotLocked but nothing is recognized as a function or command. There is nothing on teh CK Wiki either only examples for the function Islocked. Does anyone know how to make this work? Edited March 6, 2018 by morrowind1979 Link to comment Share on other sites More sharing options...
Ghaunadaur Posted March 6, 2018 Share Posted March 6, 2018 If !(TRPD.IsLocked()) or If (TRPD.IsLocked() == false) or If (TRPD.IsLocked() != true) Link to comment Share on other sites More sharing options...
morrowind1979 Posted March 6, 2018 Author Share Posted March 6, 2018 Thanks Link to comment Share on other sites More sharing options...
Recommended Posts