Scripting/Server/Functions/FindSphere

Sphere handle or null. With the optional player, a player-only sphere is returned only if it belongs to that player (use it in per-player cleanup loops).

Syntax

FindSphere(id [, player])

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "findsphere" )
	{
		FindSphere( 0 );
	}
}

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