hi im trying to get this script to work and im not sure what im doing wrong, its supposed to destroy the entity its attached to if another entity is within 100 of it for the length of the timer, as far as i can tell he conditions check out as it destroys itself at state 11 like its supposed to but it does it the secnd the entity gets cloe to it!
any help would be appreciated, i can see where im going wrong!
;Artificial Intelegence Script
;Header
desc = destroy if enemey within 100 for 8 seconds
;triggers
::state=0
:state=0,anywithin=100:timerstart,state=1
:state=0,anyfurther=100:state=0
:state=1,timergreater=8000,anywithin=100:sound=audiobank\materials\3woodA1.wav,state=2
:state=2,timergreater=9000,anywithin=100:sound=audiobank\materials\3woodA2.wav,state=3
:state=3,timergreater=10000,anywithin=100:sound=audiobank\materials\3woodA1.wav,state=4
:state=4,timergreater=11000,anywithin=100:sound=audiobank\materials\3woodA2.wav,state=5
:state=5,timergreater=12000,anywithin=100:sound=audiobank\materials\3woodA1.wav,state=6
:state=6,timergreater=13000,anywithin=100:sound=audiobank\materials\3woodA2.wav,state=7
:state=7,timergreater=14000,anywithin=100:sound=audiobank\materials\3woodA1.wav,state=8
:state=8,timergreater=15000,anywithin=100:sound=audiobank\materials\3woodA2.wav,state=9
:state=9,timergreater=16000,anywithin=100:sound=audiobank\materials\3woodA1.wav,state=10
:state=10,timergreater=17000,anywithin=100:sound=audiobank\materials\3woodA2.wav,state=11
:state=11,timergreater=18000,anywithin=100:sound=audionbank\materials\3woodD.wav,runfpidefault=3,state=0
:anyfurther=100,timergreater=5000:state=0
;End of Script
- Why is everyone on here so rude? -