Difference between revisions of "LlDerezObject"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "{{LSL_Function |func_id=|func_sleep=0.0|func_energy=10.0 |func=llDerezObject|return_type=integer |p1_type=key|p1_name=id|p1_desc=The ID of an object in the region. |p2_type=in...")
 
m (Copy/paste error by Rider :p)
 
Line 4: Line 4:
|p1_type=key|p1_name=id|p1_desc=The ID of an object in the region.
|p1_type=key|p1_name=id|p1_desc=The ID of an object in the region.
|p2_type=integer|p2_name=flag|p2_desc=Deletion options.
|p2_type=integer|p2_name=flag|p2_desc=Deletion options.
|func_desc=Returns the current health of an avatar or object in the region.
|func_desc=Derezzes an object previously rezzed from within the object containing the script.
|return_text=Returns success or failure.
|return_text=Returns success or failure.
|spec=
|spec=

Latest revision as of 23:28, 7 June 2024

Summary

Function: integer llDerezObject( key id, integer flag );

Derezzes an object previously rezzed from within the object containing the script.
Returns an integer Returns success or failure.

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

Specification

Deletes, or marks temp, an object that was previously rezzed by this script. The object 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.

Constant Value Description
DEREZ_DIE 0 Immediately delete the object.
DEREZ_MAKE_TEMP 1 Mark the object as temporary so that the simulator will remove the object at a later time.

Caveats

  • The targeted object's rezzer must be the same as the object hosting this script
  • The target must not be an attachment
  • The target must be copyable
  • The target's owner must be the same as the script's owner.
  • When marking an object as temporary, the object must not contribute to the navmesh.
All Issues ~ Search JIRA for related Bugs

Examples

Deep Notes

Search JIRA for related Issues

Signature

function integer llDerezObject( key id, integer flag );