Scripting/Server/Functions/Colour

Creates a Colour (default alpha 128).

Syntax

Colour(r, g, b [, a])

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "colour" )
	{
		Colour( 255, 128, 0 );
	}
}

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

Section: Maths and strings

Categories: Server functions | Maths and strings