pepperman35 Posted February 22, 2021 Share Posted February 22, 2021 Okay, I am having a little bit of trouble getting the MechRampDoors01 to retract via a terminal. I have declared the following properties: Default2StateActivator Property SIIR_BoatRamp Auto Const Mandatory Sound Property OBJSwitchButton Auto Const Mandatory GlobalVariable Property SIIR_RampStatusGlobal Auto Const mandatory Note: SIIR_BoatRamp is the activator MechRampDoors01. The door has the Default2StateActivator script attached to it. A simple script fragment for each of the two terminal entries (open door and deploy ramp; retract ramp and close door) is a follows. The terminal entries are controlled via the status of the global variable. If SIIR_RampStatusGlobal.GetValueInt() == 0 ; Open the door and extend the ramp OBJSwitchButton.Play(SIIR_BoatRamp) SIIR_BoatRamp.SetOpenNoWait() SIIR_RampStatusGlobal.SetValue(1) ElseIf SIIR_RampStatusGlobal.GetValueInt() == 1 ; Retract ramp and close the door OBJSwitchButton.Play(SIIR_BoatRamp) SIIR_BoatRamp.SetOpenNoWait(False) SIIR_RampStatusGlobal.SetValue(0) EndIf The door opens and the ramp deploys; however, I have not been successful getting the ramp to retract and door to close. In other words, SetOpenNoWait(False) doesn’t seem to be reversing the process. Any thoughts would be appreciated. Link to comment Share on other sites More sharing options...
pepperman35 Posted February 22, 2021 Author Share Posted February 22, 2021 **Solved** The script fragment wasn't the problem. I had to adjust some of the parameters in the Default2StateActivator. It now deploys and retracts via the terminal. Link to comment Share on other sites More sharing options...
Recommended Posts