mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
39 lines
877 B
Plaintext
39 lines
877 B
Plaintext
/*
|
|
* 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
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
params ["_vehicle"];
|
|
private ["_fries", "_waitTime"];
|
|
|
|
_vehicle setVariable [QEGVAR(fastroping,doorsLocked), true, true];
|
|
|
|
_waitTime = 2;
|
|
|
|
_vehicle animateDoor ["doorRB", 1];
|
|
_vehicle animateDoor ["doorLB", 1];
|
|
_vehicle animateDoor ["ramp_anim", 1];
|
|
|
|
_fries = _vehicle getVariable [QEGVAR(fastroping,FRIES), objNull];
|
|
if !(isNull _fries) then {
|
|
[{
|
|
_this animate ["extendHookRight", 1];
|
|
_this animate ["extendHookLeft", 1];
|
|
}, _fries, 2] call EFUNC(common,waitAndExecute);
|
|
_waitTime = 4;
|
|
};
|
|
|
|
_waitTime
|