Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script
SetColor
Category:
Objects / Display
Since engine version:
4.9.1.0 GWE
Description
Sets the ColorByOwner color of an object. This call corresponds to setting the owner using
SetOwner
to a player with player color iColor.
Syntax
bool
SetColor (
int
iColor,
object
pObj);
Parameters
iColor:
New color for ColorByOwner areas
pObj:
[opt] Target object. Can be 0 in local calls.
Example
SetColor(2,
GetCursor
(0));
Colors the owner areas of the currently selected clonk of the first player red.
See also:
GetColor
,
SetColorDw
jwk, August 2002
Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script