scottmack Posted October 12, 2011 Share Posted October 12, 2011 Hey all, im pretty inexperienced in scripting all I can do is get light to switch on and off with parent objects etc, Im needing a script that will auto lock a door behind me once i've opened it with a key or even be able to manually lock it from an in game terminal but havent the foggiest where to start, any help would be appreciated :) Link to comment Share on other sites More sharing options...
Cipscis Posted October 12, 2011 Share Posted October 12, 2011 In order to lock a door via script, you'll need to use the Lock function. SetOpenState"]SetOpenState will allow you to close the door via script (a trigger could allow you to decide when to close the door), and GetOpenState can tell you when the door has been closed so you can lock it. Cipscis Link to comment Share on other sites More sharing options...
Recommended Posts