Jump to content

MechRampDoors01 Activator Issue


pepperman35

Recommended Posts

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...