FindOtherContents

Category: Objects / Search
Since engine version: 1.0 OC

Description

Returns the first contained object which is not of the specified type.

Syntax

object FindOtherContents(id type);

Parameter

type:
id of the object type to be ignored.

Example

if (!FindOtherContents(PowderKeg)) Message("No projectile");
Displays a message if the object contains nothing but gunpowder.
See also: Contents, FindContents
Sven2, 2001-11