CBA_fnc_getPistol

Description

Returns name of pistol in unit’s inventory, if any.

Parameters

_unitUnit to check for a pistol in [Object]

Returns

Class name of pistol, if carried, otherwise “” [String]

Examples

_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.

Author

Sickboy

Close