# ObjectCount

Objects
Search
5.1 OC
int
array Criteria Search criterion in the form of a Find_* function
...
Additional search criteria in the form of Find_* functions
Returns the number of objects fulfilling the specified search criteria. Search criteria are composed of Find_x() function values.
Search criteria are specified as in FindObjects and FindObject. See FindObjects for additional samples.
Log
( "Still %d hostile clonks!", ObjectCount(Find_OCF(OCF_CrewMember), Find_Hostile(GetOwner()) );
Prints info about the strength of the enemy.
Find_Action
Find_ActionTarget
Find_Allied
Find_And
Find_AnyContainer
Find_AtPoint
Find_Category
Find_Container
Find_Distance
Find_Exclude
Find_Func
Find_Hostile
Find_ID
Find_InRect
Find_NoContainer
Find_Not
Find_OCF
Find_Or
Find_Owner
Sort_Random
Sort_Reverse
Sort_Multiple
Sort_Value
Sort_Speed
Sort_Mass
Sort_Distance
Sort_Func
FindObject
FindObjects
ObjectCount
Clonkonaut
2006-07