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
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
2015-12-01 19:48:20 +00:00
|
|
|
params ["_vehicle"];
|
2015-11-30 17:35:34 +00:00
|
|
|
|
2016-02-28 23:34:14 +00:00
|
|
|
private _config = configFile >> "CfgVehicles" >> typeOf _vehicle;
|
2015-11-30 17:35:34 +00:00
|
|
|
|
|
|
|
(isNumber (_config >> QGVAR(enabled)) &&
|
|
|
|
{(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} &&
|
|
|
|
{isText (_config >> QGVAR(onPrepare))})
|