Scripting/Server/Functions/Colour
Creates a Colour (default alpha 128).
Syntax
Colour(r, g, b [, a])Arguments
- float r
- float g
- float b
- any a (optional)
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.
Related pages
Section: Maths and strings
Categories: Server functions | Maths and strings