Difference between revisions of "Switch on"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
 
 
Line 5: Line 5:
  
 
==Use==
 
==Use==
Used to toggle a switch on based on its switch ID.
+
Used to toggle a switch on based on its switch ID. To switch off use [[switch_off]]
  
 
==Example==
 
==Example==

Latest revision as of 08:04, 23 May 2014

Syntax

Syntax: switch_on xxxxxxxx/register

  • xxxxxxxx = Integer of switch id to toggle on. (A register can also be used)

Use

Used to toggle a switch on based on its switch ID. To switch off use switch_off

Example


100:     switch_on 00000001 //Switch on switch with ID 1.
         ret 

Also see

ret