Scripting/Server/Functions/FindObject

Object handle or null.

Syntax

FindObject(id)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "findobject" )
	{
		FindObject( 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