Category: Objects
/ Search
Since engine version: 1.0 OC
Find_Func
Description
Search criterion: finds all objects which return
true
to a call of the specified function. If the function is defined locally, the local function will be called, otherwiese a global function.Syntax
array Find_Func(string function, ...);
Parameters
- function:
- Function to call
- ...:
- [opt] Parameters of the function.
Remarks
Warning: never use this with a function which might have side effects. If your function may have side effects, do not use Find_Func but walk through the list of found objects instead.
For additional information on the use of this function see FindObjects.
Example
FindObjects(Find_Func("IsClonk"))
Returns all clonks of any types (all clonks that return
true
on the call IsClonk).
See also: FindObjects