ACE3/TO_MERGE/ace/sys_cargo/slingload/fnc_attachSlingRopeToCargo.sqf

24 lines
644 B
Plaintext
Raw Normal View History

2015-01-29 23:18:45 +00:00
#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.