Derezzes an object previously rezzed from within the object containing the script.

Syntax

integer llDerezObject( key id, integer flag );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

key id
The ID of an object in the region.
integer flag
Deletion options.

Return value

Returns a boolean (an integer) which is TRUE for success or FALSE for failure.

Specification

Deletes, or marks temp, an object that was previously rezzed by this script. The object's root prim must have been previously rezzed from a script within this object. If the object is successfully deleted this function returns TRUE, if it fails for any reason it returns FALSE.

Constants

ConstantValueDescription
DEREZ_DIE0Immediately delete the object.
DEREZ_MAKE_TEMP1Mark the object as temporary so that the simulator will remove the object at a later time.
DEREZ_TO_INVENTORY2Returns the targeted object to derezzer's inventory and saves its current state.

Caveats