OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: marcus3 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
-
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