Menu

FlashLightOn

Benjamin

This command turns on the flashlight if it is not already on.
Syntax:
FlashLightOn

Example:
:State=1,KeyPressed=33 1:FlashLightOn,State=2,Sound=AudioBank\Switches\Click.wav
:State=2,KeyPressed=33 0:State=3
:State=3,KeyPressed=33 1:FlashLightOff,State=4,Sound=AudioBank\Switches\Click.wav
:State=4,KeyPressed=33 0:State=1

Code reference:
case AIACTFLASHLIGHTON:
if flashlighton=0
flashlighton=1
endif
endcase