2015-11-26 13:56:19 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
|
|
|
* Function for closing doors and retracting the hook for most vanilla helos.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Helicopter <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2015-12-14 20:50:56 +00:00
|
|
|
* Amount of time to wait before deploying ropes <NUMBER>
|
2015-11-26 13:56:19 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-12-14 20:50:56 +00:00
|
|
|
* [_vehicle] call ace_fastroping_fnc_onDeployRopesCommon
|
2015-11-26 13:56:19 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_vehicle"];
|
2015-11-30 17:35:34 +00:00
|
|
|
private ["_fries", "_waitTime"];
|
|
|
|
|
|
|
|
_waitTime = 2;
|
2015-11-26 13:56:19 +00:00
|
|
|
|
|
|
|
_vehicle animateDoor ["door_R", 1];
|
|
|
|
_vehicle animateDoor ["door_L", 1];
|
|
|
|
|
2015-11-30 17:35:34 +00:00
|
|
|
_fries = _vehicle getVariable [QGVAR(FRIES), objNull];
|
2015-11-26 13:56:19 +00:00
|
|
|
if !(isNull _fries) then {
|
|
|
|
[{
|
|
|
|
_this animate ["extendHookRight", 1];
|
|
|
|
_this animate ["extendHookLeft", 1];
|
|
|
|
}, _fries, 2] call EFUNC(common,waitAndExecute);
|
2015-11-30 17:35:34 +00:00
|
|
|
_waitTime = 4;
|
|
|
|
};
|
2015-11-26 13:56:19 +00:00
|
|
|
|
2015-11-30 17:35:34 +00:00
|
|
|
_waitTime
|