Background for Skyrim SE
Member of the Location script
intfunctionGetRefTypeAliveCount(LocationRefTypeakRefType)Native

[DEV SERVER] Loading description...


Caveats

CK Wiki - Notes

There seems to be a bug with this function, causing it to return twice the amount of actual alive refs in a cell, until the .esp is merged in the masterfile. To work around this problem, simply add /2 at the end of the function, and undo this again if you're working with a masterfile.


Parameters

LocationRefTypeakRefType

CK Wiki Description

The LocationRefType to search for.


Examples

; Obtain the number of alive ferrets in the location
int ferretCount = MyHouseProperty.GetRefTypeAliveCount(FerretRefTypeProperty)

Auto-Generated Example

LocationRefType myLocationRefType__akRefType

int returnedValue = myLocation__toCallFunctionOn.GetRefTypeAliveCount(myLocationRefType__akRefType)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.