GetCon

Category: Objects / Status
Since engine version: 1.0 OC

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();

Example

if (GetCursor()->GetCon() > 50) GetCursor()->DoCon(-10);
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, 2002-05