Background for Fallout 4
Member of the Location script
intfunctionGetRefTypeAliveCount(LocationRefTypeakRefType)Native

Description

Wiki Description

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

Documentation Comment

Returns the number of alive references matching the specified reference type


Caveats

CK Wiki - Notes

This checks references whose editor location is the location only. It does NOT check for things that have "wandered" into it from elsewhere. It also does not check disabled refs.


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 Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.