Scripting/Server/Functions/GetObjectCount

Counts of active entities of each kind.

Syntax

GetObjectCount()
GetPickupCount()
GetSphereCount()
GetBlipCount()

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "getobjectcount" )
	{
		GetObjectCount();
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Finding and counting entities

Categories: Server functions | Finding and counting entities