Difference between revisions of "GetNthForm - ObjectReference"
Jump to navigation
Jump to search
m
GetNthForm - ObjectReference (edit)
Revision as of 10:35, 28 September 2012
, 10:35, 28 September 2012semantics
imported>Cipscis m (Removing extra apostrophe) |
imported>JustinOther m (semantics) |
||
Line 27: | Line 27: | ||
EndEvent | EndEvent | ||
Function ReweighIngredientsIn(ObjectReference akContainer, Float | 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( | kForm.SetWeight(afWeight) | ||
EndIf | EndIf | ||
EndWhile | EndWhile |