Home   Help Search Login Register  

Author Topic: triggers  (Read 1117 times)

0 Members and 1 Guest are viewing this topic.

PimpD

  • Guest
triggers
« on: 22 Aug 2003, 23:21:54 »
hey im making a mp mission when the soldiers get a mission to save a guy in a town guarded by east soldiers. And when they got the guy, they need 2 bring him to a area there I got a trigger called end#1 or something.

But my problem is that sometimes they run into the trigger while trying 2 get the hostage so the mission  end before they have rescue him.

I would like to know how I make a trigger that only get active if they got the hostage with them.


Possible?
Thanks :)

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:triggers
« Reply #1 on: 23 Aug 2003, 12:04:01 »
run a script that makews a boolean come true,  then have the trigger activated at that boolean or simply have the script wait until the boolean is true


init.sqs entry
rescue = false; publicvariable "rescue"

script entry when the soldier has been captured
rescue = true; publicvariable "rescue"


and then the line that waits for rescue to have occured
@ rescue

you could probably simply place in the condition field of the trigger
rescue
« Last Edit: 23 Aug 2003, 12:04:52 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123