Background for Fallout 4
Member of the InstanceData script
intfunctionGetAmmoCapacity(InstanceData:OwnerakOwner)NativeGlobal


Caveats


Parameters

InstanceData:OwnerakOwner

CK Wiki Description

Placeholder Description.


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 int

Auto-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

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.