Skip to content

Commit

Permalink
Update addons/main/functions/GroupAction/fnc_doGroupAssault.sqf
Browse files Browse the repository at this point in the history
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
  • Loading branch information
nk3nny and rautamiekka authored Feb 17, 2025
1 parent 838689f commit 420b4ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/main/functions/GroupAction/fnc_doGroupAssault.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ _pos = _pos apply {_x select 2};
private _nearMen = _assaultPos nearEntities ["CAManBase", 1];
if (_nearMen isNotEqualTo []) then {
_enemy = _nearMen select 0;
private _surface = lineIntersectsSurfaces [(getPosASL _enemy) vectorAdd [0, 0, 2], (getPosASL _enemy) vectorAdd [-15 + random 30, -15 + random 30, -4], _enemy, objNull, true, 1, "GEOM", "VIEW"];
private _enemyPos = getPosASL _enemy;
private _surface = lineIntersectsSurfaces [_enemyPos vectorAdd [0, 0, 2], _enemyPos vectorAdd [-15 + random 30, -15 + random 30, -4], _enemy, objNull, true, 1, "GEOM", "VIEW"];
if (_surface isNotEqualTo []) then {
_assaultPos = (ASLToAGL ((_surface select 0) select 0));
};
Expand Down

0 comments on commit 420b4ee

Please sign in to comment.