- Found in:
- SKSE
Description
Wiki Description
Returns the number of ObjectReferences in the Cell based on the FormType filter. (This function requires SKSE)
Documentation Comment
SKSE64 additions built 2024-01-17 20:01:40.731000 UTC
Returns the number of refs in the cell
Caveats
CK Wiki - Notes
- Using a filter type of zero results in returning all object references in the cell.
- If using a filter type make sure to use the same filter when retrieving the references.
- If the cell that references are called from is not loaded, non-persistent references will not be called.
Parameters
Examples
Function PickEveryFlowerInCell(Actor akFlowerPicker) Global
Cell kCell = akFlowerPicker.GetParentCell()
Int iIndex = kCell.GetNumRefs(39) ; kFlora = 39
While iIndex
iIndex -= 1
kCell.GetNthRef(iIndex, 39).Activate(akFlowerPicker)
EndWhile
EndFunctionAuto-Generated Example
int myInt__formTypeFilter
int returnedValue = myCell__toCallFunctionOn.GetNumRefs(myInt__formTypeFilter)