ok heres the deal
i'm trying to create a target range for multiplayer.
the problem seems to be with my wait_tg1.sqs i think?
basicly this script should popup a target for 3 seconds, if it gets hit then it should count that as 1 to the hit_tg1 score and if it isnt hit it should add 1 to the missed_tg1 score.
this is what i have so far
hit_tg1.sqs
#loop
_i = random 15
total = total + 1
?hold1 = true : goto "wait"
?hold1 = false : goto "wait3"
;#wait3
[] exec "wait_tg1.sqs"
;goto "loop"
;#wait
@ getdammage _this >.0001
_this animate ["target_hit",1]
hit_tg1 = hit_tg1 + 1
? getdammage _this >=.8 : hint "You broke the target. dumb ass!" ; exit
~_i
_this animate ["target_hit",0]
_this setdammage 0
goto "loop"
exit
wait_tg1.sqs
_t1 = tg1
? getdammage _t1 == 0: goto "next" else goto "exit"
~1
#next
? getdammage _t1 == 0: goto "next2" else goto "exit"
~1
#next2
? getdammage _t1 == 0: goto "next3" else goto "exit"
#next3
_t1 animate ["target_hit",1]
_t1 setdammage 0.3
missed_tg1 = missed_tg1 + 1
goto "exit"
#exit
exit
Begin.sqs
missed_tg1 = 0
publicvariable "missed_tg1"
hit_tg1 = 0
publicvariable "hit_tg1"
total = 0
publicvariable "total"
player removeaction 1
hold1 = true
officer1 sidechat "Move to the danger signs, you have five seconds to begin. Your first round will be in the kneeling position"
~7
officer1 sidechat "begin"
hold1 = false
~90
officer1 sidechat "Hold fire"
hold1 = true
officer1 sidechat "Go prone, second round begins in five seconds"
~7
officer1 sidechat "begin"
hold1 = false
~90
officer1 sidechat "Hold fire"
titletext [format ["50m hit = %1 50m missed %2", hit_tg1, missed_tg1],"PLAIN DOWN"]
~10
titletext [format ["total targets = %1", total],"PLAIN DOWN"]