Skip to content

GetEntityCount

Description

Gets the count of the amount of entities of the given object type currently in the stage.

Parameters

classID

The class ID of the object to count the entities of.

isActive

If set to true, only entities that are currently active will be counted.

Return Value

Returns the entity count as an int32.

Syntax

RSDK.GetEntityCount(uint16 classID, bool32 isActive);
sVars->Count(bool32 isActive);

Example

int32 entityCount = RSDK.GetEntityCount(MyObject->classID, false);
int32 entityCount = MyObject::sVars->Count(false);