DarthRevan101 Posted February 23, 2017 Posted February 23, 2017 I'm looking for the script to unlock/open a locked door. Any help would be appreciated. Thanks. Quote
bead-v Posted February 23, 2017 Posted February 23, 2017 void main(){ object oDoor = GetObjectByTag("doortag"); //To lock the door; FALSE to unlock SetLocked(oDoor, TRUE); //To open the door AssignCommand(oDoor, ActionOpenDoor(oDoor)); //To close the door AssignCommand(oDoor, ActionCloseDoor(oDoor)); //Opening and closing the door like this is //independent from whether it's locked or not. //At least in TSL. } 1 Quote
DarthRevan101 Posted February 23, 2017 Author Posted February 23, 2017 void main(){ object oDoor = GetObjectByTag("doortag"); //To lock the door; FALSE to unlock SetLocked(oDoor, TRUE); //To open the door AssignCommand(oDoor, ActionOpenDoor(oDoor)); //To close the door AssignCommand(oDoor, ActionCloseDoor(oDoor)); //Opening and closing the door like this is //independent from whether it's locked or not. //At least in TSL. } Thank you! 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.