Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script
SetCon
Category:
Objects / Status
Since engine version:
4.9.1.0 GWE
Description
Sets the completion of an object to the specified value.
Syntax
bool
SetCon (
int
iCon,
object
pObj);
Parameters
iCon:
Completion/growth in percent
pObj:
[opt] Target object. Can be 0 in local calls.
Example
SetCon(50,
GetCrew
(0,0));
Shrinks the first clonk of the first player to half size.
See also:
DoCon
,
GetCon
,
OCF_Construct
,
OCF_FullCon
flgr, Januar 2002
matthes, Juli 2004
Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script