Difference between revisions of "GetNthForm - ObjectReference"

Jump to navigation Jump to search
m
semantics
imported>Cipscis
m (Removing extra apostrophe)
imported>JustinOther
m (semantics)
Line 27: Line 27:
EndEvent
EndEvent


Function ReweighIngredientsIn(ObjectReference akContainer, Float fWeight) Global
Function ReweighIngredientsIn(ObjectReference akContainer, Float afWeight) Global
Int iFormIndex = akContainer.GetNumItems()
Int iFormIndex = akContainer.GetNumItems()
While iFormIndex > 0
While iFormIndex > 0
Line 33: Line 33:
Form kForm = akContainer.GetNthForm(iFormIndex)
Form kForm = akContainer.GetNthForm(iFormIndex)
If kForm.GetType() == 30 ; Ingredient
If kForm.GetType() == 30 ; Ingredient
kForm.SetWeight(fWeight)
kForm.SetWeight(afWeight)
EndIf
EndIf
EndWhile
EndWhile
Anonymous user

Navigation menu