rework PFH to client module, triageIcons and vehicleFlags point there
This commit is contained in:
@@ -23,11 +23,27 @@ if (!hasInterface) exitWith {};
|
||||
];
|
||||
private _realPos = nil;
|
||||
// if pos was provided, process
|
||||
if (count _pos > 0) then {
|
||||
if (typeName _pos == "STRING") then {
|
||||
_realPos = [_pos, true] call ACE_common_fnc_getMapPosFromGrid;
|
||||
_realPos set [2, getTerrainHeightASL _realPos];
|
||||
} else {_realPos = _pos;};
|
||||
if (count _pos >= 2) then {
|
||||
switch (typeName _pos) do {
|
||||
case "ARRAY": {
|
||||
// pos is provided as an array
|
||||
_realPos = _pos select [0, 2];
|
||||
_realPos set [2, getTerrainHeightASL _realPos];
|
||||
};
|
||||
case "STRING": {
|
||||
// pos is provided as a string
|
||||
_realPos = [_pos, true] call ACE_common_fnc_getMapPosFromGrid;
|
||||
_realPos set [2, getTerrainHeightASL _realPos];
|
||||
};
|
||||
default {
|
||||
[
|
||||
LEVEL_WARNING,
|
||||
QUOTE(COMPONENT),
|
||||
format["Invalid position for custom microDAGR waypoint: %1", _wpName],
|
||||
[["name", _wpName], ["pos", _pos], ["object", _object]]] call EFUNC(common,log);
|
||||
continue;
|
||||
};
|
||||
};
|
||||
};
|
||||
// if object was provided, process and override any pos
|
||||
if (count _object > 0) then {
|
||||
@@ -53,7 +69,8 @@ if (!hasInterface) exitWith {};
|
||||
};
|
||||
|
||||
[_wpName, _realPos] call ace_microdagr_fnc_deviceAddWaypoint;
|
||||
} forEach _customWaypoints;
|
||||
true;
|
||||
} count _customWaypoints;
|
||||
}] call CBA_fnc_waitUntilAndExecute;
|
||||
|
||||
nil;
|
||||
Reference in New Issue
Block a user