Skip to main content

destruct

Discworld driver help

destruct

Name

destruct() - remove an object from the game

Synopsis

varargs void destruct( object ob );

Description

Completely destroy and remove object `ob', after the call to destruct(). If `ob' is this_object(), execution will continue, but it is best to return a value immediately. All pointers to the object in any variable or structure will immediately become zero. move_or_destruct() is called in all the objects inside of the object being destructed. If `ob' is not specified, this_object() is used.

See also

clone_object(), new(), move_or_destruct(), reload_object()