- Found in:
- F4SE
Caveats
Parameters
Examples
; set up the weapon instance
int slotIndex = PlayerRef.GetEquippedItemType(0) + 32
instanceData:Owner thisInstance = PlayerRef.GetInstanceOwner(slotIndex)
; max ammo capacity
int AmmoCapacity = instanceData.GetAmmoCapacity(thisInstance) as intAuto-Generated Example
InstanceData:Owner myInstanceData_Owner__akOwner
int returnedValue = InstanceData.GetAmmoCapacity(myInstanceData_Owner__akOwner)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
