mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
#1208 - Holster key also unholsters
This commit is contained in:
parent
be68284911
commit
6eb7497cdf
@ -110,7 +110,18 @@ if !(hasInterface) exitWith {};
|
||||
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
||||
|
||||
// Statement
|
||||
[ACE_player] call FUNC(putWeaponAway);
|
||||
if ((currentWeapon ACE_player) != "") then {
|
||||
[ACE_player] call FUNC(putWeaponAway);
|
||||
} else {
|
||||
private ["_weapon"];
|
||||
_weapon = switch (true) do {
|
||||
case ((primaryWeapon ACE_player) != ""): {primaryWeapon ACE_player};
|
||||
case ((handgunWeapon ACE_player) != ""): {handgunWeapon ACE_player};
|
||||
case ((secondaryWeapon ACE_player) != ""): {secondaryWeapon ACE_player};
|
||||
default {""};
|
||||
};
|
||||
if (_weapon != "") then {ACE_player selectWeapon _weapon};
|
||||
};
|
||||
true
|
||||
},
|
||||
{false},
|
||||
|
Loading…
Reference in New Issue
Block a user