Difference between revisions of "GetAmmo - Weapon"
Jump to navigation
Jump to search
m (→Return Value) |
|||
Line 14: | Line 14: | ||
== Return Value == | == Return Value == | ||
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 ammo has been changed via an OMOD, the only way to get the ammo currently in use is via [[GetAmmo - InstanceData]]. | 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]]. | ||
== Examples == | == Examples == |
Latest revision as of 17:19, 14 October 2022
Member of: Weapon Script
Gets the ammo used by the weapon
Syntax[edit | edit source]
Ammo Function GetAmmo() native
Parameters[edit | edit source]
None.
Return Value[edit | edit source]
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.
Examples[edit | edit source]
; Get the ammo for the weapon
Ammo weaponAmmo = weaponProperty.GetAmmo()