Home   Help Search Login Register  

Author Topic: 3 triggers activated.  (Read 561 times)

0 Members and 1 Guest are viewing this topic.

PENNYWISE

  • Guest
3 triggers activated.
« on: 14 Dec 2002, 16:01:34 »
Hi (again). :)

Well, i have another small problem....i bet its very easy(i think) but i cant however solve it...

I have 3 squads, Alpha, Bravo, Charlie(duh)  ::)

i want 1 trigger to tick off ONLY when all 3 squads are in position(in the radius of the 3 triggers that is), how would i make this?

thanks in advance.  8)
« Last Edit: 14 Dec 2002, 16:03:22 by PENNYWISE »

Offline MI_Fred

  • Members
  • *
  • AA
    • OFP Team Finlanders
Re:3 triggers activated.
« Reply #1 on: 14 Dec 2002, 16:21:00 »
Heya PW!  ;D

Well first I'd name your squads in their leaders init:
alpha = group this
bravo = group this
charlie = group this

Right, if you have 3 squads, you need 1 trigger for each in their fup. Remember to make it activate by the right side. Name them for example in the on act.:
alphalist = thislist
bravolist = thislist
charlielist = thislist

then make that 1 trigger that counts em all. It's condition:
("_x in alphalist" count (units alpha)) >= (1* count (units alpha)) && ("_x in bravolist" count (units bravo)) >= (1* count (units bravo)) && ("_x in charlielist" count (units charlie)) >= (1* count (units charlie))

Gee, what a long string... I'll go and try it out myself, just wrote that outta ma head.  ;)
« Last Edit: 14 Dec 2002, 16:23:54 by MI_Fred »
There's gooks over there, there's mines over there, and watch out those goddamn monkeys talk, I'll bite ya.

PENNYWISE

  • Guest
Re:3 triggers activated.
« Reply #2 on: 14 Dec 2002, 16:26:59 »
Thanks both of ya! :D
« Last Edit: 14 Dec 2002, 16:54:02 by PENNYWISE »

Offline MI_Fred

  • Members
  • *
  • AA
    • OFP Team Finlanders
Re:3 triggers activated.
« Reply #3 on: 14 Dec 2002, 17:08:16 »
Ok, here's the same in practice, unzip it to your user/missions folder, intro island, named Xfupexample.

hope that's what you ment  :)
There's gooks over there, there's mines over there, and watch out those goddamn monkeys talk, I'll bite ya.