ACE3/TO_MERGE/agm/TopDownAttack/functions/fn_canToggleTopDownAttack.sqf

12 lines
337 B
Plaintext
Raw Normal View History

// by commy2
private ["_player", "_ctrlJavelinMode"];
_player = _this select 0;
disableSerialization;
_ctrlJavelinMode = (uiNamespace getVariable ["AGM_dlgJavelinOptics", displayNull]) displayCtrl 1006;
getNumber (configFile >> "CfgWeapons" >> currentWeapon _player >> "AGM_enableTopDownAttack") == 1
&& {ctrlShown _ctrlJavelinMode}