Adjustments for fn_getNearestBluforObjective
This commit is contained in:
parent
4c2eb06953
commit
1a939d9389
|
@ -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"];
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue