I am trying to suspend or say deactivate a crate from exploding using a switch. I dont know what I am doing wrong. I tried different stuff but couldnt get it working. I am not a scripter so any scripting gurus around please help
Code for Crate
;Artificial Intelligence Script
;Header
desc = apply a force to the entity when activated
;Triggers
:state=0,activated=1:state=1
:state=1,plrdistwithin=200:triggerforce=1000
:state=2,activated=0:state=3,suspend
;End of Script
Normal Switch.fpi for switch
Thanks in anticipation
Prince