- Found in:
- F4SE
Caveats
Parameters
intcapacity
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
; increase capacity by 1
instancedata.SetAmmoCapacity(thisInstance, AmmoCapacity + 1)Auto-Generated Example
InstanceData:Owner myInstanceData_Owner__akOwner
int myInt__capacity
InstanceData.SetAmmoCapacity(myInstanceData_Owner__akOwner, myInt__capacity)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
