GetAmmo - Weapon

Revision as of 17:19, 14 October 2022 by GELUXRUM (talk | contribs) (→‎Return Value)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Weapon Script

Gets the ammo used by the weapon

SyntaxEdit

Ammo Function GetAmmo() native

ParametersEdit

None.

Return ValueEdit

The ammo used by the weapon. It is worth noting that this will return the ammo used in the base weapon record. If your weapon's ammo has been changed via an OMOD, the only way to get the ammo currently in use is via GetAmmo - InstanceData.

ExamplesEdit

; Get the ammo for the weapon
Ammo weaponAmmo = weaponProperty.GetAmmo()


See AlsoEdit