Find_OCF

Category: Objects / Search
Since engine version: 1.0 OC

Description

Search criterion: finds all objects which have the specified Object Character Flag set.

Syntax

array Find_OCF(int ocf);

Parameter

ocf:
Object character flag of the objects to find.

Remark

For additional information on the use of this function see FindObjects.

Examples

ObjectCount(Find_OCF(OCF_InLiquid | OCF_InSolid))
Returns the number of objects which are currently in a liquid or stuck in the ground.
FindObject(Find_OCF(OCF_Alive), Find_OCF(OCF_OnFire))
Returns the first found burning object, if one can be found.
See also: FindObjects, Object character flags
Clonkonaut, 2006-07