SetCon

Category: Objects / Status
Since engine version: 6.0 OC

Description

Sets the completion of an object to the specified value.

Syntax

bool SetCon(int con, int precision, bool grow_from_center);

Parameters

con:
Completion/growth in percent
precision:
If specified, the con value will be divided by this value. No value or 0 uses the default precision of 100.
grow_from_center:
If specified, this parameter determines whether the object should grow from the bottommost vertex or from its center. The default value is false, which makes the object grow from the bottommost vertex.

Example

GetCrew(0,0)->SetCon(50);
Shrinks the first clonk of the first player to half size.
See also: DoCon, GetCon, OCF_Construct, OCF_FullCon
flgr, 2002-01
matthes, 2004-07
Marky, 2015-01