ACE3/TO_MERGE/ace/sys_cargo/slingload/fnc_attachSlingRopeToCargo.sqf
Giallustio e5f02f8d63 sys_cargo
sys_cargo to merge
2015-01-30 00:19:13 +01:00

24 lines
644 B
Plaintext

#include "script_component.hpp"
PARAMS_1(_cargo);
if (GVAR(disabled)) exitWith {
_cargo spawn {
private "_magHolder";
sleep 2;
_magHolder = "WeaponHolder" createVehicle [0,0,0];
_magholder addMagazineCargoGlobal ["ACE_Rope_M5", 1];
[QGVAR(wh), _magHolder] call CBA_fnc_globalEvent;
_magHolder setPos [((position _this) select 0) + 2, ((position _this) select 1) + 2, 0];
};
};
player playmove "AinvPknlMstpSlayWrflDnon_medic";
sleep 5;
player removeMagazine "ACE_Rope_M5";
_cargo setVariable [QGVAR(hasSlingRope), true, true];
// TODO: Process
// TODO: Visual attached sling rope to cargo, to indicate something is prepared.