-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
#include "script_component.hpp" | ||
|
||
params ["_vehicle", "_pos", ["_timeout", 0]]; | ||
params ["_group", "_pos", ["_timeout", 0]]; | ||
|
||
private _wp = (group _vehicle) addWaypoint [_pos, 0]; | ||
private _wp = _group addWaypoint [_pos, 0]; | ||
_wp setWaypointTimeout [_timeout, _timeout, _timeout]; | ||
_wp setWaypointStatements ["true", "deleteVehicle vehicle this; {deleteVehicle _x} forEach thisList"]; | ||
_wp setWaypointStatements ["true", format ["call %1", { | ||
if !(local this) exitWith {}; | ||
private _group = group this; | ||
private _vehicles = [_group, true] call BIS_fnc_groupVehicles; | ||
{deleteVehicle _x} forEach (thisList + _vehicles); | ||
}]]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "script_component.hpp" | ||
|
||
[ | ||
"Task", "Despawn", | ||
{ | ||
private _unit = [_this, ["AllVehicles"], false] call ACL_fnc_checkModuleTarget; | ||
if (isNil "_unit") exitWith {}; | ||
|
||
[[_unit], { | ||
params ["_confirmed", "_objects", "_pos"]; | ||
if (_confirmed) then { | ||
_objects params ["_unit"]; | ||
[group _unit, _pos, 2] call ACL_fnc_taskDespawn; | ||
}; | ||
}] call ACL_fnc_selectPosition; | ||
} | ||
] call ACL_fnc_registerModule |