Scripting/Server/Functions/CreateClientSphere

Same, but only that player sees it and only they trigger it. The player is the last argument. Throws a script error if the player is invalid or no slots remain.

Syntax

CreateClientSphere(pos, radius [, colour], player)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "createclientsphere" )
	{
		CreateClientSphere( player.Pos, 5.0 );
	}
}

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

Section: Creating world entities

Categories: Server functions | Creating world entities