GetCon

Category: Objects / Status
Since engine version: 4.6.5.0 CP

Description

Returns the completion of an object. With buildings this is the completion of the construction site. With animals and plants this is the current growth (see StretchGrowth/OverSize in DefCore).

Syntax

int GetCon (object pObj);

Parameter

pObj:
[opt] Object of which to determine completion.

Example

if (GetCon(GetCursor()) > 50) DoCon(-10, GetCursor());
Shrinks the selected clonk of the first player by 10% if he's not already at half size.
See also: DoCon, OCF_Fullcon, SetCon
Cucaracha, Mai 2002