Difference between revisions of "LlDerezObject"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
m (Copy/paste error by Rider :p) |
(Clarified that the rezzer of the target object's root prim is what determines success/fail when using this function on any prim in a linkset.) |
||
Line 7: | Line 7: | ||
|return_text=Returns success or failure. | |return_text=Returns success or failure. | ||
|spec= | |spec= | ||
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. | 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. | If the object is successfully deleted this function returns TRUE, if it fails for any reason it returns false. | ||
|caveats= | |caveats= |
Latest revision as of 18:25, 23 June 2024
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llDerezObject( key id, integer flag );? | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
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'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.
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.