OsResetAllScripts
From OpenSimulator
(Difference between revisions)
(Created page with "{{osslfunc |function_syntax=osResetAllScripts(integer AllLinkSet) |threat_level=ignored |permissions=true |delay=0 |description=Resets all the scripts on the same prim if All...") |
(Add a second exemple) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 7: | Line 7: | ||
|description=Resets all the scripts on the same prim if AllLinkSet is FALSE( or 0) or on same linkset if AllLinkSet is TRUE ( or 1 ) | |description=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 | + | This function can be heavy, and can have negative side effects due to the asynchronous nature of script engines. |
| + | |||
| + | |ossl_example=<source lang="lsl"> | ||
| + | // | ||
| + | // 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); | ||
| + | } | ||
| + | } | ||
| + | </source> | ||
| + | <source lang="lsl"> | ||
| + | // | ||
| + | // 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); | ||
| + | } | ||
| + | } | ||
| + | </source> | ||
|additional_info= | |additional_info= | ||
| − | This function was added | + | This function was added to 0.9.1.0, Oct 10, 2019 |
}} | }} | ||
Latest revision as of 11:29, 24 November 2020
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(s) | |
// // 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); } } // // 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); } } | |
| Notes | |
| This function was added to 0.9.1.0, Oct 10, 2019 | |