2015-11-30 17:35:34 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
|
|
|
* Prepares the helicopters FRIES.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: A helicopter with deployed ropes <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
2015-12-14 20:50:56 +00:00
|
|
|
* [_vehicle] call ace_fastroping_fnc_prepareFRIES
|
2015-11-30 17:35:34 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
2015-12-14 20:50:56 +00:00
|
|
|
params ["_vehicle"];
|
2015-11-30 17:35:34 +00:00
|
|
|
|
|
|
|
//Stage indicator: 0 - travel mode; 1 - preparing FRIES; 2 - FRIES ready; 3 - ropes deployed
|
|
|
|
_vehicle setVariable [QGVAR(deploymentStage), 1, true];
|
|
|
|
|
2017-09-19 20:38:49 +00:00
|
|
|
private _config = configFile >> "CfgVehicles" >> typeOf _vehicle;
|
|
|
|
private _waitTime = 0;
|
2015-11-30 17:35:34 +00:00
|
|
|
if (isText (_config >> QGVAR(onPrepare))) then {
|
|
|
|
_waitTime = [_vehicle] call (missionNamespace getVariable (getText (_config >> QGVAR(onPrepare))));
|
|
|
|
};
|
|
|
|
|
|
|
|
[{
|
|
|
|
_this setVariable [QGVAR(deploymentStage), 2, true];
|
2016-05-22 13:27:24 +00:00
|
|
|
}, _vehicle, _waitTime] call CBA_fnc_waitAndExecute;
|