2015-11-26 13:56:19 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
|
|
|
* Function for opening doors and extending 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 cutting ropes <NUMBER>
|
2015-11-26 13:56:19 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-12-14 20:50:56 +00:00
|
|
|
* [_vehicle] call ace_fastroping_fnc_onCutRopesCommon
|
2015-11-26 13:56:19 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_vehicle"];
|
|
|
|
|
2015-12-01 19:48:20 +00:00
|
|
|
private _fries = _vehicle getVariable [QGVAR(FRIES), objNull];
|
2015-11-26 13:56:19 +00:00
|
|
|
if !(isNull _fries) then {
|
|
|
|
_fries animate ["extendHookRight", 0];
|
|
|
|
_fries animate ["extendHookLeft", 0];
|
2015-11-30 17:35:34 +00:00
|
|
|
[{
|
|
|
|
_this animateDoor ["door_R", 0];
|
|
|
|
_this animateDoor ["door_L", 0];
|
2016-03-06 18:53:37 +00:00
|
|
|
_this animateDoor ["CargoRamp_Open", 0];
|
|
|
|
_this animateDoor ["Door_rear_source", 0];
|
|
|
|
_this animateDoor ["Door_6_source", 0];
|
|
|
|
_this animate ["dvere1_posunZ", 0];
|
|
|
|
_this animate ["dvere2_posunZ", 0];
|
|
|
|
_this setVariable [QGVAR(doorsLocked), false, true];
|
2016-05-22 13:27:24 +00:00
|
|
|
}, _vehicle, 2] call CBA_fnc_waitAndExecute;
|
2015-11-26 13:56:19 +00:00
|
|
|
|
2015-11-30 17:35:34 +00:00
|
|
|
4
|
|
|
|
} else {
|
|
|
|
_vehicle animateDoor ["door_R", 0];
|
|
|
|
_vehicle animateDoor ["door_L", 0];
|
2016-03-06 18:53:37 +00:00
|
|
|
_vehicle animateDoor ["CargoRamp_Open", 0];
|
|
|
|
_vehicle animateDoor ["Door_rear_source", 0];
|
|
|
|
_vehicle animateDoor ["Door_6_source", 0];
|
2016-01-31 18:25:31 +00:00
|
|
|
_vehicle animate ["dvere1_posunZ", 0];
|
|
|
|
_vehicle animate ["dvere2_posunZ", 0];
|
2016-03-06 18:53:37 +00:00
|
|
|
_vehicle setVariable [QGVAR(doorsLocked), false, true];
|
2015-11-30 17:35:34 +00:00
|
|
|
|
|
|
|
2
|
|
|
|
};
|