Home   Help Search Login Register  

Author Topic: Check units and make units  (Read 538 times)

0 Members and 1 Guest are viewing this topic.

marcus3

  • Guest
Check units and make units
« on: 16 Dec 2005, 18:35:17 »
i am trying to make a unit support script for a mission, i need the script to let u choose what unit u want, then, how meny u want, but it also needs to check how meny units are in the players group so u dont make to meny, i have tryed a few differnt ways of doing this but the are all long and tedice's. anywas,i hope this is all clear, its hard to put in words  :(
thanks
« Last Edit: 16 Dec 2005, 18:36:48 by Big Boss Marcus »

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Check units and make units
« Reply #1 on: 16 Dec 2005, 20:05:27 »
You can count the number of units that are alive in a group by using:

{alive _x} count units groupname

alternatively if you want to know how many are in a group - even if they ar no longer alive (it does take time for deaths to register sometimes) use

count units groupname