Difference between revisions of "GetNthRef - Cell"
Jump to navigation
Jump to search
→Examples: Reworked example (kCell.CellFunction() vs. Cell.CellFunction())
imported>PurpleLunchbox (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Cell Script Returns the ObjectReference at the Nth index in the Cell based on the Form...") |
imported>JustinOther (→Examples: Reworked example (kCell.CellFunction() vs. Cell.CellFunction())) |
||
Line 23: | Line 23: | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus">Function PickEveryFlowerInCell(Actor akFlowerPicker) Global | ||
Cell kCell = akFlowerPicker.GetParentCell() | |||
Int iIndex = kCell.GetNumRefs(39) ; kFlora = 39 | |||
While | While iIndex | ||
iIndex -= 1 | |||
kCell.GetNthRef(iIndex, 39).Activate(akFlowerPicker) | |||
EndWhile | |||
EndWhile | EndFunction</source> | ||
</source> | |||
== See Also == | == See Also == |