Hello,
I would create a small script to spawn soldier or vehicle with BIS_fnc_spawnGroup or bis_fnc_spawnvehicle.
How can I check an item in my array is a vehicle or a soldier:
For exemple :
array_spawn = ["T90","RU_Soldier_HAT","RU_Soldier_AR"];
I would to switch on bis_fnc_spawnvehicle if my first array is a vehicle and second array is a soldier to BIS_fnc_spawnGroup.
Something like that:
Thank you very muchPHP Code:array_spawn = ["T90","RU_Soldier_HAT","RU_Soldier_AR"];
{
switch (_x) do {
case isvehicle : { [getpos player,_x] call BIS_fnc_spawnVehicle };
case issoldier : { [getpos player,_x] call BIS_fnc_spawnGroup };
};
} foreach array_spawn;
HOME
Reply With Quote



