ACE3/addons/fcs/functions/fnc_canResetFCS.sqf

18 lines
345 B
Plaintext
Raw Normal View History

2015-01-13 21:51:02 +00:00
/*
* Author: KoffeinFlummi
* Called from config. Can player reset FCS?
*
* Argument:
* Nothing
*
2015-12-10 15:00:14 +00:00
* Return Value:
* Boolean <BOOL>
*
* Public: No
2015-01-13 21:51:02 +00:00
*/
#include "script_component.hpp"
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