Category: Objects
/ Display
Since engine version: 1.0 OC
SetColor
Description
Sets the ColorByOwner color of an object. This call corresponds to setting the owner using SetOwner to a player with color as the player color.
Syntax
void SetColor(int color);
Parameter
- color:
- New color for ColorByOwner areas.
Example
GetCursor(0)->SetColor(RGBa(255, 255, 255, 127));
Colors the owner areas of the currently selected clonk of the first player white and half transparent.
See also: GetColor, SetClrModulation