forked from Mirrors/openclonk
35 lines
1.1 KiB
XML
35 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<!DOCTYPE funcs
|
|
SYSTEM '../../../clonk.dtd'>
|
|
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
|
|
<funcs>
|
|
<func>
|
|
<title>FindOtherContents</title>
|
|
<category>Objects</category>
|
|
<subcat>Search</subcat>
|
|
<version>5.1 OC</version>
|
|
<syntax>
|
|
<rtype>object</rtype>
|
|
<params>
|
|
<param>
|
|
<type>id</type>
|
|
<name>type</name>
|
|
<desc>id of the object type to be ignored.</desc>
|
|
</param>
|
|
</params>
|
|
</syntax>
|
|
<desc>Returns the first contained object which is not of the specified type.</desc>
|
|
<examples>
|
|
<example>
|
|
<code><funclink>if</funclink> (!FindOtherContents(PowderKeg)) <funclink>Message</funclink>("No projectile");</code>
|
|
<text>Displays a message if the object contains nothing but gunpowder.</text>
|
|
</example>
|
|
</examples>
|
|
<related>
|
|
<funclink>FindContents</funclink>
|
|
<funclink>Contents</funclink>
|
|
</related>
|
|
</func>
|
|
<author>Sven2</author><date>2001-11</date>
|
|
</funcs>
|