Ok, so for my game I tried to make it so that when you walk through a hallway the two cylinders explode. I tried scripting it but that didn't work. I thought of two variations of the script and both didn't work. Can someone help me.
Script 1
;Script by Hunter Studios
;Artificial Intelligence Script
;Header
desc = Blow Up
;Triggers
:state=0:plrdistwithin=1:destroy,state=1
;End of Script
script 2
;Script by Hunter Studios
;Artificial Intelligence Script
;Header
desc = Blow Up
;Triggers
:state=0:plrdistwithin=1:runfpi=flamable,state=1
;End of Script