Here are the scripts. DO NOT USE. THESE ARE FOR INFORMATIONAL RESOURCE ONLY!
:state=0:hudreset,hudx=50,hudy=60,hudimagefine=languagebank\english\gamecore\text\Zombies\pressandhold.tga,hudname=pressandhold,hudhide=1,hudmake=display,state=1
:state=1,varequal=barrier1 0:state=2
:state=1,varequal=barrier1 1:hideentity,coloff,state=3
:state=2:showentity,colon,state=0
:state=3,plrdistwithin=100:hudshow=pressandhold,state=4
:state=4,scankeypressed=33:addvar=money 10,subvar=barrier1 1,hudunshow=pressandhold,showentity,coloff,state=0
That's the entity code. This is the activator code.
:state=0,varequal=barrier1 0,anywithin=60:etimerstart,sound=audiobank\misc\ping.wav,state=11
:state=10,anyfurther=60:state=0
:State=11,anywithin=40:state=12
:state=11,anyfurther=60:state=0
:state=12,etimergreater=1000:sound=audiobank\materials\3woodA1.wav,state=13
:state=13,anywithin=40:state=14
:state=13,anyfurther=40:state=0
:State=14,etimergreater=2000:sound=audiobank\materials\3woodA2.wav,state=15
:state=15,anywithin=40:state=16
:state=15,anyfurther=40:state=0
:State=16,etimergreater=3000:sound=audiobank\materials3\woodA3.wav,state=17
:state=17,anywithin=40:state=18
:state=17,anyfurther=40:state=0
:state=18,etimergreater=4000:state=19
:state=19:sound=audiobank\materials\3woodA4.wav,state=20
:state=20:hideentity,coloff,addvar=barrier1 1
Now, the barrier entity won't stop moving. Any ideas?
(All vars are setup in a different script.)
[href]tophatforums.info[/href] - For all your project and gaming needs