Menu

FlashLightOff

Benjamin

This command turns off the flashlight if it is not already off.
Syntax:
FlashLightOff

Example:
:State=1,KeyPressed=33 1:FlashLightOn,State=2,Sound=AudioBankSwitchesClick.wav
:State=2,KeyPressed=33 0:State=3
:State=3,KeyPressed=33 1:FlashLightOff,State=4,Sound=AudioBankSwitchesClick.wav
:State=4,KeyPressed=33 0:State=1

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