SGTbayk47 Posted July 25, 2016 Posted July 25, 2016 Hey everyone, I'm wondering if there is a way to check if a terminal has been locked permanently or if a lock has been broken, and make part of script run when that happens. It would preferably only involve vanilla scripting, so I don't have to add NVSE as a requirement for one tiny part of the mod. If anyone knows how/if this can be done it'd be appreciated. Cheers, BayK.
Ladez Posted July 25, 2016 Posted July 25, 2016 Look at the lock functions on GECK Wiki. These should cover all your use cases and are all vanilla functions.
madmongo Posted July 25, 2016 Posted July 25, 2016 Use the GetLocked function. It's a standard GECK function and does not require NVSE. if MyTerminalRef.GetLocked == 0 ; unlockedif MyTerminalRef.GetLocked == 1 ; locked, but not locked outif MyTerminalRef.GetLocked == 2 ; locked out
Recommended Posts