Switch

From Retro Modding Wiki
Jump to: navigation, search

A Switch is a script object that can be in one of two states: Open or Closed.

  • Send an "Open" message to set its state to Open
  • Send a "Close" message to set its state to Closed
  • Send a "SetToZero" message to activate the switch.
  • When activated, the switch will send messages using the "Closed" state if it's closed, or the "Open" state if it's open.