Difference between revisions of "LlDie"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
Line 3: | Line 3: | ||
|func=llDie | |func=llDie | ||
|sort=Die | |sort=Die | ||
|func_footnote=This function can be called from any prim in the {{LSLG|link set}} and will result in the entire object being deleted. | |func_footnote=This function can be called from any prim in the {{LSLG|link set}} and will result in the entire object being deleted.<br/>To remove a single prim from an object use [[llBreakLink]] first. | ||
|func_desc=Deletes the object. The object does not go to the owners Inventory:Trash. | |func_desc=Deletes the object. The object does not go to the owners Inventory:Trash. | ||
|return_text | |return_text | ||
Line 24: | Line 24: | ||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow||[[llDetachFromAvatar]]|}} | |also_functions={{LSL DefineRow||[[llDetachFromAvatar]]|}} | ||
{{LSL DefineRow||[[llBreakLink]]|}} | |||
|also_events | |also_events | ||
|also_tests | |also_tests |
Revision as of 18:43, 9 March 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llDie( );41 | Function ID |
0.0 | Forced Delay |
0.0 | Energy |
Deletes the object. The object does not go to the owners Inventory:Trash.
This function can be called from any prim in the link set and will result in the entire object being deleted.
To remove a single prim from an object use llBreakLink first.
Caveats
- After this function is called there is no way to undo the deletion of the object.
- Has no effect if called from within an attachment; there is no way to delete an attachment.
- To detach an object from the avatar call llDetachFromAvatar
Examples
//Counts down from 5 to 1, then dies default { state_entry() { integer olf; for(olf = 5; olf > 0; --olf) llSay(0, (string)olf); llDie(); } }