//versio 1 waitUntil {!isNull player}; if (hasInterface && time < 1) then { if (isNil {_tarkistus getVariable "afi_aloitus"}) then {afi_aloitus = true}; if (!(afi_aloitus)) exitwith {}; switch (side player) do { case west: { vari = "colorBLUFOR"; osapuoli = "b"; }; case east: { vari = "colorOPFOR"; osapuoli = "o"; }; case resistance: { vari = "colorIndependent"; osapuoli = "n"; }; default { vari = "colorCivilian"; osapuoli = "c"; }; }; _merkki = []; _numero = 0; _vakiotyyppi = format ["%1_unknown", osapuoli]; ////////// //Ryhmät// ////////// { _pomo = leader (_x); _puoli = Side _pomo; if (side player == _puoli ) then { _porukka = group _pomo; _paikka = getpos _pomo; _merkinnimi = format ["%1 aloitus", _porukka]; teksti = _merkinnimi; teksti = (teksti select [2]); _nimi = format ["_merkki:%1", _porukka]; _merkki = _merkki + [_merkinnimi]; _johto = format ["%1", _porukka]; _johto = _johto find "10"; _tyyppi = _vakiotyyppi; if !(_johto == -1) then { _tyyppi = format ["%1_hq", osapuoli]; } else { _tyyppi = format ["%1_inf", osapuoli]; }; _merk = createMarkerLocal [_merkinnimi, _paikka]; _merk setMarkerShape "ICON"; _merk setMarkerType _tyyppi; _merk setMarkerColor vari; _merk setMarkerSize [0.75,0.75]; _merk setMarkerText teksti; }; } forEach allGroups; ///////////// //AJONEUVOT// ///////////// { if (_x isKindof "LandVehicle" || _x isKindof "Air" || _x isKindOf "Ship" || _x isKindOf "Static" || _x isKindOf "thing") then { if ((_x getVariable "AFI_vehicle_gear") == str(side player)) then { _conffi = configFile >> "CfgVehicles" >> typeOf _x; _luuska = getText(_conffi >> "displayName"); _numero = _numero + 1; _luuskannimi = format ["luuska%1", _numero]; _merkki = _merkki + [_luuskannimi]; _luuskanpaikka = getpos _x; _romu = getText(configFile >> "CfgVehicles" >> (typeOf _x) >> "vehicleClass"); _romu = format ["%1", _romu]; _tyyppi = _vakiotyyppi; if (_romu == "Car" || _romu == "rhs_vehclass_car" || _romu == "rhs_vehclass_MRAP" || _romu == "rhs_vehclass_truck") then {_tyyppi = format ["%1_motor_inf", osapuoli];}; if (_romu == "Air" || _romu == "rhs_vehclass_helicopter") then {_tyyppi = format ["%1_air", osapuoli];}; if (_romu == "Armored" || _romu =="rhs_vehclass_tank") then {_tyyppi = format ["%1_armor", osapuoli];}; if (_romu == "rhs_vehclass_ifv" || _romu =="rhs_vehclass_apc") then {_tyyppi = format ["%1_mech_inf", osapuoli];}; if (_romu == "Ship" || _romu =="Submarine") then {_tyyppi = format ["%1_naval", osapuoli];}; if (_romu == "Static") then {_tyyppi = "mil_triangle";}; if (_romu == "rhs_vehclass_artillery") then {_tyyppi = format ["%1_art", osapuoli];}; if (_romu == "rhs_vehclass_aircraft" || _romu =="plane") then {_tyyppi = format ["%1_plane", osapuoli];}; if (_romu == "Support") then {_tyyppi = format ["%1_support", osapuoli];}; if (_romu == "Autonomous") then {_tyyppi = format ["%1_uav", osapuoli];}; if (_x isKindOf "thing") then {_tyyppi = "mil_box"; _luuska = "Laatikko"}; _merk = createMarkerLocal [_luuskannimi, _luuskanpaikka]; _merk setMarkerShape "ICON"; _merk setMarkerType _tyyppi; _merk setMarkerSize [0.75,0.75]; _merk setMarkerColor vari; _merk setMarkerText _luuska; }; }; } forEach vehicles; waitUntil {time>60}; { deleteMarkerLocal _x; } forEach _merkki; }; /* //jos tulee jotain uutta paskaa.... vehkeet =[]; { paskat = getText(configFile >> "CfgVehicles" >> (typeOf _x) >> "vehicleClass"); paskat = format ["%1", paskat]; if (!(paskat in vehkeet)) then { vehkeet = vehkeet + [paskat]; }; } forEach vehicles;