Search the Community
Showing results for tags 'setvehiclevarname'.
Found 1 result
-
Hello: With this small code I try to place on the map two civilians with their corresponding name "CIVILIAN_1" and "CIVILIAN_2", but it does not work. Can somebody help me? Grateful.. if (!isServer) exitWith {}; _markerstr = createMarker ["CIVILIAN_1",[2747.08,2417.49]]; _markerstr setMarkerShape "ICON"; _markerstr setMarkerType "hd_dot"; _height = 4.76837e-007; _pos = getMarkerPos "CIVILIAN_1"; _CIVILIAN_1 = [ [_pos select 0, _pos select 1, _height], EAST, ["C_man_hunter_1_F"],[],[],[],[],[],0] call BIS_fnc_spawnGroup; { group _x setFormDir 270; _x allowFleeing 0; _x setdir 270; _x setUnitPos "AUTO"; _x setBehaviour "SAFE"; _x setCombatMode "RED"} forEach units _CIVILIAN_1; _CIVILIAN_1 setVehicleVarName "CIVILIAN_1"; CIVILIAN_1 = _CIVILIAN_1; sleep 4; _markerstr = createMarker ["CIVILIAN_2",[2748.23,2412.76]]; _markerstr setMarkerShape "ICON"; _markerstr setMarkerType "hd_dot"; _height = 0; _pos = getMarkerPos "CIVILIAN_2"; _CIVILIAN_2 = [ [_pos select 0, _pos select 1, _height], EAST, ["C_man_sport_3_F"],[],[],[],[],[],0] call BIS_fnc_spawnGroup; { group _x setFormDir 270; _x allowFleeing 0; _x setdir 270; _x setUnitPos "AUTO"; _x setBehaviour "SAFE"; _x setCombatMode "RED"} forEach units CIVILIAN_2; _CIVILIAN_2 setVehicleVarName "CIVILIAN_2"; CIVILIAN_2 = _CIVILIAN_2;