Ok so I have been trying to get a script to work so that when you walk up to the object and press enter, a timer will start. After ten seconds, the object and another object will explode. This is what I have so far:
;Artificial Intelligence Script
;Triggers
:state=0:dimvar=bomb,setvar=bomb 0,state=1
:state=1:setalphafade=0,hudreset,hudx=50,hudy=90,hudsize=20,hudimagefine=gamecore\text\pressentertouse.tga,hudname=plantbomb,hudhide=1,hudmake=display,state=2
:state=2,plrdistwithin=100:hudshow=plantbomb,state=3
:state=2,plrdistfurther=100:hudunshow=plantbomb,state=2
:state=3,scancodekeypressed=28:alttexture=1,state=4
:state=4:setalphafade=100,hudunshow=plantbomb,etimerstart,state=10
:state=10,etimergreater=10000:addvar=bomb 1,runfpidefault=2
;End of Script
This script works, up until the point when you get near the object. Then the hud doesn't show up.
On the other object I have this script:
:state=0,varequal=bomb 1:runfpidefault=2
This should make the object explode (the destroy script is flamable.fpi) but it just dissappears. I am at a wits end about how to make this work any help would be appriciated!
Thanks,
ZackS28
Your signature has been erased by a mod