mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
hide check temperature action when empty weapon is selected, #431
This commit is contained in:
parent
4f5e63de72
commit
fc98e78a53
@ -16,7 +16,7 @@ class CfgVehicles {
|
||||
};
|
||||
class ACE_CheckTemperature {
|
||||
displayName = "$STR_ACE_Overheating_CheckTemperatureShort";
|
||||
condition = QUOTE( currentWeapon _player in [ARR_3(primaryWeapon _player, secondaryWeapon _player, handgunWeapon _player)] );
|
||||
condition = "switch (currentWeapon _player) do {case (''): {false}; case (primaryWeapon _player); case (secondaryWeapon _player); case (handgunWeapon _player): {true}; default {false}}";
|
||||
exceptions[] = {"isNotInside"};
|
||||
statement = QUOTE( [ARR_2(_player, currentWeapon _player)] call FUNC(CheckTemperature); );
|
||||
showDisabled = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user