SetColorDw

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 dwNewColor.

Syntax

bool SetColorDw (int dwNewColor, object pObj);

Parameters

dwNewColor:
New color for ColorByOwner areas
pObj:
[opt] Target object. Can be 0 in local calls.

Example

SetColorDw(RGBa(255, 255, 255, 127), GetCursor(0));
Colors the owner areas of the currently selected clonk of the first player white and half transparent.
See also: GetColorDw, SetClrModulation, SetColor
Sven2, Mai 2002