handgunMagazine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{GameCategory|arma3|New Scripting Commands}} {{GameCategory|arma3|Scripting Commands}} {{uc:{{PAGENAME}}}}" to "")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 30: Line 30:
</code>
</code>


| [[handgunWeapon]], [[handgunItems]], [[addHandgunItem]], [[removeHandgunItem]], [[removeAllHandgunItems]], [[primaryWeaponMagazine]], [[secondaryWeaponMagazine]], [[binocularMagazine]]
|seealso= [[handgunWeapon]], [[handgunItems]], [[addHandgunItem]], [[removeHandgunItem]], [[removeAllHandgunItems]], [[primaryWeaponMagazine]], [[secondaryWeaponMagazine]], [[binocularMagazine]]
}}
}}

Revision as of 00:48, 17 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Unit Inventory

Syntax

Syntax:
Syntax needed
Parameters:
unit: Object
Return Value:
Return value needed

Examples

Example 1:
hint str handgunMagazine player; //["16Rnd_9x21_Mag"]
Example 2:
_array = handgunMagazine player; if (count _array > 0) then { hint ("Handgun is loaded with " + (_array select 0) + "!"); } else { if (handgunWeapon player != "") then { hint "Handgun is not loaded!"; } else { hint "Player doesn't have a handgun!"; }; };

Additional Information

See also:
handgunWeaponhandgunItemsaddHandgunItemremoveHandgunItemremoveAllHandgunItemsprimaryWeaponMagazinesecondaryWeaponMagazinebinocularMagazine

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note