2015-01-12 10:02:44 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Called from config. Returns true if the player is a gunner and the players current vehicle has a FCS.
|
|
|
|
*
|
2015-12-10 15:00:14 +00:00
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Boolean <BOOL>
|
2015-01-12 10:02:44 +00:00
|
|
|
*
|
2016-05-20 02:39:15 +00:00
|
|
|
* Example:
|
|
|
|
* [] call ace_fcs_fnc_canUseFCS
|
|
|
|
*
|
2015-12-10 15:00:14 +00:00
|
|
|
* Public: No
|
2015-01-12 10:02:44 +00:00
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-02-11 14:29:42 +00:00
|
|
|
getNumber ([configFile >> "CfgVehicles" >> typeOf vehicle ACE_player, [ACE_player] call EFUNC(common,getTurretIndex)] call EFUNC(common,getTurretConfigPath) >> QGVAR(Enabled)) == 1
|
2016-05-20 02:39:15 +00:00
|
|
|
&& {cameraView == "GUNNER"}
|
2016-05-20 06:10:12 +00:00
|
|
|
&& {!([ACE_player] call CBA_fnc_canUseWeapon)} //Not Turned Out
|
2016-06-24 21:53:13 +00:00
|
|
|
&& {cameraOn != (getConnectedUAV ACE_player)} //Not Controlling a UAV
|