LlLinksetDataReset: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Leviathan Linden (talk | contribs)
mNo edit summary
Madi Melodious (talk | contribs)
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 3: Line 3:
|func=llLinksetDataReset
|func=llLinksetDataReset
|func_footnote
|func_footnote
|func_desc=The '''llLinksetDataReset''' function erases all '''key:value''' pairs stored in the linkset's datastore.  When this function is called the [[linkset_data]] event is triggered in all scripts running in the linkset with an action of [[Template:LSL_Constants_Linkset_Data|LINKSETDATA_RESET]].
|func_desc=The '''llLinksetDataReset''' function erases all '''name:value''' pairs stored in the linkset's datastore.  When this function is called the [[linkset_data]] event is triggered in all scripts running in the linkset with an action of [[Template:LSL_Constants_Linkset_Data|LINKSETDATA_RESET]].
|func_footnote
|func_footnote
|spec
|spec
|caveats
|caveats=
llLinksetDataReset removes all keys. Even those that were created by llLinksetDataWriteProtected.
|helpers
|helpers
|examples=
The following code will delete all the keys in a object.
<syntaxhighlight lang="lsl2">
// Removes all the keys in linksetdata without a saving throw.
// Warning: This will delete in password protected keys and is irreversible.
// -- Madi Melodious --
default
{
    state_entry()
    {
      llLinksetDataReset();
    }
}
</syntaxhighlight>
|also_functions=
|also_functions=
{{LSL DefineRow||[[llLinksetDataAvailable]]|}}
{{LSL DefineRow||[[llLinksetDataAvailable]]|}}
{{LSL DefineRow||[[llLinksetDataCountKeys]]|}}
{{LSL DefineRow||[[llLinksetDataCountKeys]]|}}
{{LSL DefineRow||[[llLinksetDataDelete]]|}}
{{LSL DefineRow||[[llLinksetDataDelete]]|}}
{{LSL DefineRow||[[llLinksetDataDeleteFound]]|}}
{{LSL DefineRow||[[llLinksetDataFindKeys]]|}}
{{LSL DefineRow||[[llLinksetDataFindKeys]]|}}
{{LSL DefineRow||[[llLinksetDataListKeys]]|}}
{{LSL DefineRow||[[llLinksetDataListKeys]]|}}

Latest revision as of 14:27, 3 August 2025

Summary

Function: llLinksetDataReset( );
0.0 Forced Delay
10.0 Energy

The llLinksetDataReset function erases all name:value pairs stored in the linkset's datastore. When this function is called the linkset_data event is triggered in all scripts running in the linkset with an action of LINKSETDATA_RESET.

Caveats

llLinksetDataReset removes all keys. Even those that were created by llLinksetDataWriteProtected.

Examples

The following code will delete all the keys in a object.

// Removes all the keys in linksetdata without a saving throw.
// Warning: This will delete in password protected keys and is irreversible.
// -- Madi Melodious --

default
{
    state_entry()
    {
       llLinksetDataReset();
    }
}

Deep Notes

Signature

function void llLinksetDataReset();