As I wrote, I cant turn music or sound off with a "wall-switch" the sound I am using is an alarm that shourld be turned off by the alarm-switch I made a pretty easy script, dont know what Im doing wrong?? (I have tried both sound and music but no sucess)
Switch script:
desc = Switch Activate (toggle on and off)
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pressentertouse.tga,hudname=useswitchprompt,hudhide=1,hudmake=display,state=10
:plrdistwithin=50:hudshow=useswitchprompt,hudfadeout=useswitchprompt
:state=10,plrdistwithin=50,plrusingaction=1:state=1,plrsound=$0,activateifused=1,alttexture=1
:state=1,plrusingaction=0:state=2
:state=2,plrdistwithin=50,plrusingaction=1:state=3,plrsound=$1,activateifused=0,alttexture=0
:state=3,plrusingaction=0:state=10
;End of Script
And This is My script:
;Triggers
:state=0,plrwithinzone=1:state=1,music=$0
:state=1,plrwithinzone=0:state=2,music=$0
:state=2,plrwithinzone=0,activated=1:musicoverride=$0,destroy
Can someone help?