Skip to content

osResetAllScripts

Serra Royale edited this page Jun 11, 2025 · 1 revision

osResetAllScripts(integer AllLinkSet)

Resets all the scripts on the same prim if AllLinkSet is FALSE( or 0) or on same linkset if AllLinkSet is TRUE ( or 1 )

This function can be heavy, and can have negative side effects due to the asynchronous nature of script engines. | :-----: | :-----: | | Threat Level | This function does not do a threat level check | | Permissions | Use of this function is always allowed by default | | Extra Delay | 0 seconds |

Example 1

//
// osResetAllScripts Script Example
//
 
integer AllLinkSet = FALSE;
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see osResetAllScripts reset all scripts in the inventory of this primitive.");
    }
 
    touch_start(integer number)
    {
        osResetAllScripts(AllLinkSet);
    }
}

Example 2

//
// osResetAllScripts Script Example
//
 
integer AllLinkSet = TRUE;
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see osResetAllScripts reset all scripts on the same link set as this primitive.");
    }
 
    touch_start(integer number)
    {
        osResetAllScripts(AllLinkSet);
    }
}

Clone this wiki locally