Create a free account to remove all ad content.

Author Topic:  [Blueprint] Switch acting as a Button  (Read 372 times)

0 Members and 1 Guest are viewing this topic.


  • Legendary Member
  • *
  • Posts: 1147
    • View Profile
[Blueprint] Switch acting as a Button
« on: December 31, 2014, 09:02:06 AM »
Switch as a Button

Toggling the power state, for a set time.

The Script

This scriptwork can be used any world.
Spoiler for Script:
-Run when scriptblock is powered On

Code: [Select]
1. SetPower [x,y,z] [on]
2. Commit
3. Wait [2000]
4. SetPower [x,y,z] [off]
5. SetSwitch [x,y,z] [off]
6. Commit

Set the [xyz] coordinates to whatever you want to power, Or change the command to something else.
Line 5 will reset the switch back to the Off position after the wait command. Set the [xyz] coords to match the switch.