Squirrel/Script Types/Colour
From Liberty Unleashed Wiki
The Colour type can be used to pre-define certain colour values for e.g. messages and vehicles. Note that most functions only use the r, g and b values of the Colour.
Constructor
Colour( int r, int g, int b )
Values
- r - The amount of Red to be in the colour
- g - The amount of Green to be in the colour
- b - The amount of Blue to be in the colour
- a - The amount of Alpha to be in the colour
Example
This will send a blue-coloured message saying 'Testing!' when somebody types '/blue'
Col_Blue <- Colour( 0, 0, 255 ); function onPlayerCommand( player, cmd, text ) { if ( cmd == "blue" ) { Message( "Testing!", player, Col_Blue ); } }