mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
618d3a2e96
Fix doing FCS keyUp calculations/setVariable when controlling a UAV while also in a turret with FCS enabled. Normal rangefinder on the UAV will still work as FUNC(canUseRangefinder) is still true
22 lines
634 B
Plaintext
22 lines
634 B
Plaintext
/*
|
|
* Author: commy2
|
|
* Called from config. Returns true if the player is a gunner and the players current vehicle has a FCS.
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* Boolean <BOOL>
|
|
*
|
|
* Example:
|
|
* [] call ace_fcs_fnc_canUseFCS
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
getNumber ([configFile >> "CfgVehicles" >> typeOf vehicle ACE_player, [ACE_player] call EFUNC(common,getTurretIndex)] call EFUNC(common,getTurretConfigPath) >> QGVAR(Enabled)) == 1
|
|
&& {cameraView == "GUNNER"}
|
|
&& {!([ACE_player] call CBA_fnc_canUseWeapon)} //Not Turned Out
|
|
&& {cameraOn != (getConnectedUAV ACE_player)} //Not Controlling a UAV
|