21 lines
883 B
Plaintext
21 lines
883 B
Plaintext
[10, [_this select 0], {
|
|
private ["_cargo","_nObject","_pilot"];
|
|
_cargo = _args select 0;
|
|
_nObject = nearestObject [_cargo, "Heli_Transport_04_base_F"];
|
|
_pilot = currentPilot _nObject;
|
|
_cargo attachTo [_nObject, [0, -1.1, -1.2]];
|
|
|
|
[_nObject, ["Release Cargo", { private ["_heli","_cargoRopes"];
|
|
_heli = _this select 0;
|
|
_cargoRopes = ropes _heli;
|
|
{
|
|
ropeDestroy _x;
|
|
} forEach _cargoRopes;
|
|
{
|
|
detach _x;
|
|
_pos = [_heli, 6, 11, 0, 0, 20, 0] call BIS_fnc_findSafePos;
|
|
_x setPos _pos;
|
|
} forEach attachedObjects _heli;
|
|
removeAllActions _heli;
|
|
},nil,1.5,true,true,"","true",8,false,"",""]] remoteExec ["addAction"];
|
|
}, {}, "Attaching Cargo..."] call ace_common_fnc_progressBar; //I was lazy... |