0 Members and 1 Guest are viewing this topic.
magazines vehicle Operand types: vehicle: ObjectType of returned value: ArrayDescription: Returns array of types names of all vehicle's magazines.Used In: OFP/ArmAExample:_mags = magazines player
scalar bool array string 0xfcffffef
_group = group player_max = count _group_counter = 1_selecter = 0#loop_subject = _group select _selecter<do what you want here>_subject command whatever_counter = _counter + 1?(_counter > _max): exitgoto "loop"
Try:Code: [Select]_group = group player_max = count _group_counter = 1_selecter = 0#loop_subject = _group select _selecter<do what you want here>_subject command whatever_counter = _counter + 1?(_counter > _max): exitgoto "loop"This is untested, but should work.
_group = group player_max = count _group_counter = 0#loop_subject = (units _group) select _counter<do what you want here>_subject command whatever_counter = _counter + 1?(_counter >= _max): exitgoto "loop"
'_max = count _group[#]'; Error count: type group, expected array
_max = count units _group
_max = count _group
_magsleft = 0{_magsleft = _magsleft + (_myUnit ammo _x)} forEach magazines _myUnit