DarthRevan101 104 Posted February 23, 2017 I'm looking for the script to unlock/open a locked door. Any help would be appreciated. Thanks. Quote Share this post Link to post Share on other sites
bead-v 251 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 Share this post Link to post Share on other sites
DarthRevan101 104 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 Share this post Link to post Share on other sites