Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script
FindContents
Category:
Objects / Search
Since engine version:
4.6.5.0 CP
Description
Returns the first found contained object of the specified type.
Syntax
object
FindContents (
id
idType,
object
pObj);
Parameters
idType:
Object type to be found
pObj:
[opt] Container to be searched. Can be 0 in local calls.
Example
var
hut;
if
(hut=
FindObject
(HUT2))
Exit
(FindContents(CLNK, hut),
GetX
(hut),
GetY
(hut));
Expels a clonk from a hut.
See also:
Contents
,
FindObject
,
FindOtherContents
Sven2, November 2001
Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script