ACE3/addons/fcs/functions/fnc_canResetFCS.sqf

21 lines
393 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
2015-01-13 21:51:02 +00:00
/*
* Author: KoffeinFlummi
* Called from config. Can player reset FCS?
*
2016-06-18 09:50:41 +00:00
* Arguments:
* None
2015-01-13 21:51:02 +00:00
*
2015-12-10 15:00:14 +00:00
* Return Value:
* Boolean <BOOL>
*
* Example:
* call ace_fcs_fnc_canResetFCS
*
2015-12-10 15:00:14 +00:00
* Public: No
2015-01-13 21:51:02 +00:00
*/
2015-12-10 15:00:14 +00:00
params ["_unit"];
count ((vehicle _unit) getVariable [format ["%1_%2", QGVAR(Magazines), [_unit] call EFUNC(common,getTurretIndex)], []]) > 1 // return