2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-11-30 17:35:34 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
|
|
|
* Checks if the unit can prepare the helicopters FRIES.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2015-12-01 19:48:20 +00:00
|
|
|
* 0: The helicopter itself <OBJECT>
|
2015-11-30 17:35:34 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Able to prepare FRIES <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
2015-12-14 20:50:56 +00:00
|
|
|
* [_vehicle] call ace_fastroping_fnc_canPrepareFRIES
|
2015-11-30 17:35:34 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-12-01 19:48:20 +00:00
|
|
|
params ["_vehicle"];
|
2015-11-30 17:35:34 +00:00
|
|
|
|
2021-02-18 18:58:08 +00:00
|
|
|
private _config = configOf _vehicle;
|
2015-11-30 17:35:34 +00:00
|
|
|
|
2016-03-07 17:27:12 +00:00
|
|
|
((getNumber (_config >> QGVAR(enabled)) == 1) || {!(isNull (_vehicle getVariable [QGVAR(FRIES), objNull]))}) &&
|
2015-12-14 20:40:15 +00:00
|
|
|
{(_vehicle getVariable [QGVAR(deploymentStage), 0]) == 0} &&
|
2016-03-07 17:27:12 +00:00
|
|
|
{getText (_config >> QGVAR(onPrepare)) != ""}
|