Home   Help Search Login Register  

Author Topic: Counting units  (Read 807 times)

0 Members and 1 Guest are viewing this topic.

seanver

  • Guest
Counting units
« on: 31 Oct 2002, 02:15:49 »
I wish to know how to make a trigger that tells me how many units are there on a side, for example east. I have many of them in a mission and I don't want to have to count them in the editor.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Counting units
« Reply #1 on: 31 Oct 2002, 02:53:53 »
Well a trigg could fire if ya used the countside spell :

EAST countside thisList >=40

 :) that trigg would fire if 40(+) eastern eggs were on the map!

just let the trigger cover the whole frikkin' map  ;D


dunno if you can actually >COUNT and get the # on screen - I think ya need to
count how many wounded/healthy units that are still alive on the map  :-\ :)





Bremmer

  • Guest
Re:Counting units
« Reply #2 on: 31 Oct 2002, 10:51:10 »
Set up a really big trigger (covering all the units on your map, and all places they are likely to go). Set it as East Present, repeating and radio alpha. In the on activation field put:

hint format ["East units left : %1", east countside thislist]

 :)

seanver

  • Guest
Re:Counting units
« Reply #3 on: 31 Oct 2002, 12:13:11 »
Well, its not possible to set is as east present and radio alpha because if I set it as east presnet, I can't set is as radio alpha (cuz they are in the same list).


Anyway it's been as easy as put in the condition line of the first trigger, the one with the code you told me, a word like go, then create another trigger with radio alpha, go=true, and works.

Thanks!