Home   Help Search Login Register  

Author Topic: As soon as a west dies...  (Read 595 times)

0 Members and 1 Guest are viewing this topic.

SharkDog

  • Guest
As soon as a west dies...
« on: 09 Aug 2003, 12:19:15 »
Hi all,

I have this situation in a mission, where you are a East sniper hiding in the woods. The West is just escorting a troop of POW's to the base, your job is to kill them all so all the countries would think West kills his POW's.

So on to the question, how can i make that as soon as you kill one west guy, the mission ends and fails?

Thanks in advance.

SharkDog

  • Guest
Re:As soon as a west dies...
« Reply #1 on: 09 Aug 2003, 15:20:37 »
no one?

peter

  • Guest
Re:As soon as a west dies...
« Reply #2 on: 09 Aug 2003, 15:43:20 »
create a trigger "end" and put in the condition-filed:
"!alive _x" count soldW > 0

and somewhere define var soldW ...
if itÂ's one group: soldW = units groupname
for more groups: soldW = (units groupname1) + (units groupname2)
or otherwise create an array: soldW = [sold1,sold2,sold3, ...]

SharkDog

  • Guest
Re:As soon as a west dies...
« Reply #3 on: 09 Aug 2003, 16:35:27 »
So, I have 4 soldiers in the base I should do this.

"!alive _x" count soldW >soldW = [s1,s2,s3] 0

? cause i don't really understand :(

the soldiers are named s1 s2 and s3

SoldierX

  • Guest
Re:As soon as a west dies...
« Reply #4 on: 09 Aug 2003, 16:44:33 »
group a trigger with the soldiers and make it activate after they aren't present.

peter

  • Guest
Re:As soon as a west dies...
« Reply #5 on: 09 Aug 2003, 21:13:52 »
"!alive _x" count [s1,s2,s3] > 0

it simply counts how many of the units are not alive, so if only one dies it becomes true and activates the trigger ...

if you do it this way you can add as many units as you like -> [s1,s2,s3,s4,s5,s6,s7,s8,s9] would also work ...
« Last Edit: 09 Aug 2003, 21:19:56 by peter »

SharkDog

  • Guest
Re:As soon as a west dies...
« Reply #6 on: 10 Aug 2003, 00:31:13 »
I still don't understand sorry, ill try some stuff tommorow
Gonna catch some sleep now.

SharkDog

  • Guest
Re:As soon as a west dies...
« Reply #7 on: 10 Aug 2003, 10:38:18 »
Okay, i got it to work, thanks for the help all.