Mod:Creation Kit/GetRefTypeAliveCount - Location

Member of: Mod:Creation Kit/Location Script

Obtains the number of alive enabled references matching the specified reference type in this location.

Syntax
int Function GetRefTypeAliveCount(LocationRefType akRefType) native

Parameters

 * akRefType: The LocationRefType to search for.

Return Value
The number of alive enabled references in the location that have the specified location ref type.

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