Returns name of pistol in unit’s inventory, if any.
_unit | Unit to check for a pistol in [Object] |
Class name of pistol, if carried, otherwise “” [String]
_pistol = [player] call CBA_fnc_getPistol; // => "", assuming that the player was not carrying any pistol. // => "Makarov", assuming that the player was carrying a Makarov pistol.
Sickboy