2016-03-01 23:01:34 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
|
|
|
* Function for opening doors and extending the hook for most vanilla helos.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Helicopter <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Amount of time to wait before deploying ropes <NUMBER>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [_vehicle] call ace_compat_rhs_usf3_fnc_onPrepare
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2016-03-07 19:15:55 +00:00
|
|
|
#include "script_component.hpp"
|
2016-03-01 23:01:34 +00:00
|
|
|
params ["_vehicle"];
|
|
|
|
|
|
|
|
_vehicle setVariable [QEGVAR(fastroping,doorsLocked), true, true];
|
|
|
|
|
2016-09-04 14:44:22 +00:00
|
|
|
private _waitTime = 2;
|
2016-03-01 23:01:34 +00:00
|
|
|
|
|
|
|
_vehicle animateDoor ["doorRB", 1];
|
|
|
|
_vehicle animateDoor ["doorLB", 1];
|
|
|
|
_vehicle animateDoor ["ramp_anim", 1];
|
|
|
|
|
2016-09-04 14:44:22 +00:00
|
|
|
private _fries = _vehicle getVariable [QEGVAR(fastroping,FRIES), objNull];
|
2016-03-01 23:01:34 +00:00
|
|
|
if !(isNull _fries) then {
|
|
|
|
[{
|
|
|
|
_this animate ["extendHookRight", 1];
|
|
|
|
_this animate ["extendHookLeft", 1];
|
2016-11-25 18:18:04 +00:00
|
|
|
}, _fries, 2] call CBA_fnc_waitAndExecute;
|
2016-03-01 23:01:34 +00:00
|
|
|
_waitTime = 4;
|
|
|
|
};
|
|
|
|
|
|
|
|
_waitTime
|