Home   Help Search Login Register  

Author Topic: Question with mp array  (Read 1211 times)

0 Members and 1 Guest are viewing this topic.

sgt.scorpion

  • Guest
Question with mp array
« 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