• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
MAINTENANCE ANNOUNCEMENT - JIRA will undergo maintenance starting 1:00am PDT through 3:00am on Saturday 2010.03.20. Please do not enter issues during this time as the system maybe restarted.
Issue Details (XML | Word | Printable)

Key: SVC-287
Type: New Feature New Feature
Status: Closed Closed
Resolution: Duplicate
Priority: Normal Normal
Assignee: Unassigned
Reporter: Haravikk Mistral
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

llSetLinkScriptState

Created: 07/Jun/07 01:01 PM   Updated: 08/Jun/07 12:10 PM
Component/s: Scripts
Affects Version/s: 1.15.0, 1.16.0, 1.17.0
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Duplicate
 


 Description  « Hide
Exactly the same as llSetScriptState(string scriptName, integer running) except that it can be applied to linked primitives and thus would take the form:

llSetLinkScriptState(integer linkNum, string scriptName, integer running);

The linkNum param of course is either a single link-number or one of the LINK_* constants such as LINK_ROOT, LINK_THIS, LINK_SET etc.

The scriptName parameter is either the name of a specific script in the link(s) (if present, ignored otherwise), or it can be left blank to change the state of ALL scripts in an object.

This function would be especially useful in items which have multiple scripts that do very little (such as change colour of a prim) and are controlled centrally by root-scripts. For example, I have an 18 prim HUD which needs scripts in each button really to handle functionality, partly due to how it works and partly due to the amount of stuff it does (many of the scripts are pushing the memory limit). However, when the HUD isn't really doing anything then these scripts aren't really needed, especially if the HUD is minimised. This script can then be used to simply deactivate all other scripts (except the main one), causing any overhead they may cause to be reduced/eliminated when idle.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Lex Neva added a comment - 08/Jun/07 12:10 PM
closing as a duplicate of SVC-105