GetColor

Category: Objects / Display
Since engine version: 4.9.1.0 GWE

Description

Gets the indicated color value of the ColorByOwner areas of an object. These are controlled by SetOwner, SetColor.

Syntax

int GetColor (object pObj);

Parameter

pObj:
[opt] The object. Can be 0 in local calls.

Remark

This function is obsolete. Current aspects are controlled using GetColorDw.

Example

SetColor((GetColor()+1)%12);
Changes the object's color to the next player color.
See also: GetColorDw, SetColor
Sven2, Mai 2002