OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CopyrightPhilly on 13 Apr 2004, 02:28:29
-
ok I'm After A Little Code That Checks How Many Soldiers A Leader Has Under Its Comannd...
And Then If It Has The Full 11 Soldiers Then To goto"ok"
Is There Any Simple Code That Will Check This?
Cheers, PHilly
-
Not much to go on there, but:
_men = count units nameofyourgroup
? _men == 12 : goto "ok"
? _men <12 : hint format ["Group has %1 men", _men]
goto "notok"
#ok
...more stuff
...extra stuff
...anything else
goto "exit"
#notok
...bits
...more bits
...income tax return
#exit
exit
EDIT..........forgot the exit
Planck
-
Thanks A Lot M8
Just What I Was Looking For....
Thanks Again, Philly