mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28 lines
494 B
Plaintext
28 lines
494 B
Plaintext
/*
|
|
* Author: KoffeinFlummi
|
|
*
|
|
* Cuts the ropes from the helicopter
|
|
*
|
|
* Arguments:
|
|
* 0: helicopter
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*/
|
|
|
|
_vehicle = _this select 0;
|
|
|
|
_ropes = _vehicle getVariable "AGM_Ropes";
|
|
{
|
|
(_x select 2) ropeDetach (_x select 0);
|
|
ropeDestroy (_x select 0);
|
|
_x spawn {
|
|
sleep 60;
|
|
ropeDestroy (_this select 1);
|
|
deleteVehicle (_this select 2);
|
|
deleteVehicle (_this select 3);
|
|
};
|
|
} forEach _ropes;
|
|
|
|
_vehicle setVariable ["AGM_RopesDeployed", False, True];
|