SetComponent

Category: Objects / Components
Since engine version: 4.6.5.0 CP

Description

Sets the component count of an object.

Syntax

bool SetComponent (id idComponent, int iCount, object pObj);

Parameters

idComponent:
Component to be added
iCount:
Count to be set for components of type idComponent
pObj:
[opt] Object to be modified. Can be 0 in local calls.

Remark

Also see DefCore
See also: GetComponent, Split2Components
jwk, August 2002