Find_OCF

Category: Objects / Search
Since engine version: 4.9.6.0 CR

Description

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

Syntax

array Find_OCF (int iOCF);

Parameter

iOCF:
Object character flag of the objects to find

Remark

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

Examples

ObjectCount2(Find_OCF(OCF_InLiquid | OCF_InSolid))
Returns the number of objects which are currently in a liquid or stuck in the ground.
FindObject2(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, Juli 2006