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
- int id
- Player player (optional)
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "findsphere" )
{
FindSphere( 0 );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- FindPlayer
- FindVehicle
- FindObject
- FindPickup
- FindBlip
- FindNPC
- GetPlayers
- GetMaxPlayers
- GetClosestPlayer
- GetVehicleCount
- GetObjectCount
- KickPlayer
Section: Finding and counting entities
Categories: Server functions | Finding and counting entities