Difference between revisions of "GetAmmo - InstanceData"

228 bytes added ,  18:01, 14 October 2022
imported>Qazaaq
(added f4se member)
 
Line 18: Line 18:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
; Placeholder Code.
; set up the weapon instance
int slotIndex = PlayerRef.GetEquippedItemType(0) + 32
instanceData:Owner thisInstance = PlayerRef.GetInstanceOwner(slotIndex)
 
; ammo type currently in the weapon
Ammo ChamberedAmmo = instanceData.GetAmmo(thisInstance)
</source>
</source>


12

edits