Skip to content

Commit

Permalink
fix spawn alt
Browse files Browse the repository at this point in the history
  • Loading branch information
tbox1911 committed Aug 5, 2024
1 parent 553ad65 commit 485a248
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions core.liberation/scripts/server/patrols/send_paratroopers.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ sleep 1;
private _spawnpos = getPosATL _vehicle;

[_pilot_group] call F_deleteWaypoints;
private _waypoint = _pilot_group addWaypoint [_targetpos, 1];
private _waypoint = _pilot_group addWaypoint [_targetpos, 100];
_waypoint setWaypointType "MOVE";
_waypoint setWaypointSpeed "FULL";
_waypoint setWaypointBehaviour "SAFE";
_waypoint setWaypointCombatMode "WHITE";
_waypoint setWaypointCompletionRadius 200;
_waypoint setWaypointCompletionRadius 300;
{_x doFollow (leader _pilot_group)} foreach units _pilot_group;

private _cargo_seat_free = _vehicle emptyPositions "Cargo";
Expand Down Expand Up @@ -73,12 +73,12 @@ if (_vehicle isKindOf "Plane_Base_F") then { _unload_dist = _unload_dist * 1.5 }

if (!alive _vehicle) exitWith {};
[_pilot_group] call F_deleteWaypoints;
private _waypoint = _pilot_group addWaypoint [_spawnpos, 1];
private _waypoint = _pilot_group addWaypoint [_spawnpos, 0];
_waypoint setWaypointType "MOVE";
_waypoint setWaypointSpeed "FULL";
_waypoint setWaypointBehaviour "SAFE";
_waypoint setWaypointCombatMode "WHITE";
_waypoint setWaypointCompletionRadius 150;
_waypoint setWaypointCompletionRadius 300;
_waypoint setWaypointStatements ["true", "[vehicle this] spawn clean_vehicle"];
{_x doFollow (leader _pilot_group)} foreach units _pilot_group;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (isNull _grp) exitWith { diag_log "--- LRX Error: cannot create group."; grpN
_grp setCombatMode "WHITE";
_grp setCombatBehaviour "COMBAT";

_spawn_pos set [2, 0.5];
if ((_spawn_pos select 2) < 0) then { _spawn_pos set [2, 0.5] };
diag_log format ["Spawn (%1) %2 Units (%3-%4) Pos %5", count _classname, _type, _side, _grp, _spawn_pos];

private ["_unit", "_pos", "_backpack"];
Expand Down

0 comments on commit 485a248

Please sign in to comment.