Adjustments for fn_getNearestBluforObjective

This commit is contained in:
Wyqer 2019-12-06 15:48:38 +01:00
parent 4c2eb06953
commit 1a939d9389
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
3 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ if (isNil "reset_battlegroups_ai") then {reset_battlegroups_ai = false};
sleep (5 + (random 5));
private _objPos = ([getPos (leader _grp)] call KPLIB_fnc_getNearestBluforObjective) select 0;
private _objPos = [getPos (leader _grp)] call KPLIB_fnc_getNearestBluforObjective;
[_objPos] remoteExec ["remote_call_incoming"];

View File

@ -7,7 +7,7 @@ sleep 1;
private _transGrp = (group (driver _transVeh));
private _start_pos = getpos _transVeh;
private _objPos = ([getpos _transVeh] call KPLIB_fnc_getNearestBluforObjective) select 0;
private _objPos = [getpos _transVeh] call KPLIB_fnc_getNearestBluforObjective;
private _unload_distance = 500;
private _crewcount = count crew _transVeh;

View File

@ -46,7 +46,7 @@ if !(_spawn_marker isEqualTo "") then {
if ((_x in opfor_troup_transports) && ([] call KPLIB_fnc_getOpforCap < GRLIB_battlegroup_cap)) then {
if (_vehicle isKindOf "Air") then {
[([markerPos _spawn_marker] call KPLIB_fnc_getNearestBluforObjective) select 0, _vehicle] spawn send_paratroopers;
[[markerPos _spawn_marker] call KPLIB_fnc_getNearestBluforObjective, _vehicle] spawn send_paratroopers;
} else {
[_vehicle] spawn troup_transport;
};
@ -56,7 +56,7 @@ if !(_spawn_marker isEqualTo "") then {
} forEach _selected_opfor_battlegroup;
if (GRLIB_csat_aggressivity > 0.9) then {
[([markerpos _spawn_marker] call KPLIB_fnc_getNearestBluforObjective) select 0] spawn spawn_air;
[[markerPos _spawn_marker] call KPLIB_fnc_getNearestBluforObjective] spawn spawn_air;
};
sleep 5;