OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: sgt.scorpion on 23 Nov 2002, 10:06:12
-
I need to create an array of just the human players in my coop mission. This script doesn't seem to work, anyway to save each players variable to global array?
_a = 0
_grp = group player
_units = units _grp
_count= count _units
mparray = []
#loop
_man = _units select _a
?(_man == player):mparray = mparray +[_man]
~.5
_a = _a + 1
?(_a < _count):goto "loop"
exit
Thanks for your help
Sgt. Scorpion