Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script
FindOtherContents
Category:
Objects / Search
Since engine version:
4.6.5.0 CP
Description
Returns the first contained object which is not of the specified type.
Syntax
object
FindOtherContents (
id
idType,
object
pObj);
Parameters
idType:
id of the object type to be ignored
pObj:
[opt] Container to be searched. Can be 0 in local calls.
Example
if
(!FindOtherContents(GUNP))
Message
(
"Kein Projektil"
,
this
());
Displays a message if the object contains nothing but gunpowder.
See also:
Contents
,
FindContents
Sven2, November 2001
Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script