AeroGuardian Posted September 30, 2011 Share Posted September 30, 2011 Is there a way to add a script to all linked parts? Or to make a script access all linked parts? E.G. I am trying to make a script where the entire object and all linked parts become transparent, but the problem is that i have to add it to each and every linked part. Help? Link to comment Share on other sites More sharing options...
PeterCanessa Oh Posted September 30, 2011 Share Posted September 30, 2011 Ssshhh! No talking in the library :-( http://community.secondlife.com/t5/LSL-Scripting/bd-p/LSLScripting is where all the questions and discussion are, this is more or less just a depository of useful scripts. With luck a moderator will move this thread for you (but last time I asked them to they moved just my post - they like a joke as much as the next person, lol) [ETA: @ Mike Moderator - thank you for knowing what I meant rather than what I said :-)] However: Yes, both things are possible. Controllinng a whole linkset from one script is vastly preferable to having many scripts, one in each prim. llSetLinkPrimitiveParamsFast() is the usual favourite but llSetLinkAlpha() is what you want :-) llSetLinkAlphat(LINK_SET, 0.0, ALL_SIDES); Link to comment Share on other sites More sharing options...
Void Singer Posted October 1, 2011 Share Posted October 1, 2011 llGetLinkKey --> llGiveInventory then take to inventory, re-rez and "set script in selection to running" ETA: Pete's suggestion is better for your case, I just thought I'd add the general case for propagating scripts to all linked prims, which has uses such as seen here and here Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now