Difference between revisions of "GetAmmo - Weapon"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Plplecuyer
 
Line 14: Line 14:


== Return Value ==
== Return Value ==
The ammo used by the weapon.
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]].


== Examples ==
== Examples ==

Revision as of 17:15, 14 October 2022

Member of: Weapon Script

Gets the ammo used by the weapon

Syntax

Ammo Function GetAmmo() native

Parameters

None.

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.

Examples

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


See Also