Category: Objects
/ Status
Since engine version: 6.0 OC
SetCon
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.