LlLinksetDataReset: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Madi Melodious (talk | contribs)
added an example of the code, but not sure why an example is needed.
Madi Melodious (talk | contribs)
No edit summary
Line 14: Line 14:
// Removes all the keys in linksetdata without a saving throw.
// Removes all the keys in linksetdata without a saving throw.
// Warning: This will delete in password protected keys and is irreversible.
// Warning: This will delete in password protected keys and is irreversible.
// -- Madi Melodious --


default
default

Revision as of 12:15, 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()
    {
        llSay(0, llDumpList2String(llLinksetDataListKeys(0, 0), "\n"));
    }
}

Deep Notes

Signature

function void llLinksetDataReset();