12
edits
imported>Qazaaq (added f4se member) |
|||
Line 18: | Line 18: | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; | ; 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> | ||
edits