ACE3/addons/fcs/functions/fnc_canUseFCS.sqf
Nicolás Badano e38eb5c09d fix for fcs
2015-01-18 17:56:05 -03:00

18 lines
399 B
Plaintext

/*
* Author: commy2
*
* Called from config. Returns true if the player is a gunner and the players current vehicle has a FCS.
*
* Argument:
* Nothing
*
* Return value:
* Boolean (Bool)
*/
#include "script_component.hpp"
ACE_player == gunner vehicle ACE_player
&& {getNumber (configFile >> "CfgVehicles" >> typeOf (vehicle ACE_player) >> QGVAR(Enabled)) == 1}
&& {cameraView == "GUNNER"}