I have a mission where one trigger executes on script named chopper1hunt.sqs. Script send an chopper to hunt men flying with ultralight planes. Anyway, that part works great.
Idea: I dont want this chopper to hunt my men for ever, but say about 3 minutes.
Inside that chopper1hunt.sqs is an global variable named attack and same trigger that executes that script, sets that variable to true. OK, so far everything is working fine.
I have an other trigger set to be activated with 180sec delay and which condition is attack and on activation attack= false.
So, now I have trigger that sets this variable to true and trigger that sets it to false. These seems to work OK.
Problem: How do I use this variable mode change in my script ?
I have tried something like this:
?attack=false:goto "gohome"
idea is that when trigger sets variable to false, chopper is heading to home and stops hunting.
But, I allways get error like : ?attack |#|=false (and something text which I dont remember )
What should I do