Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

integer llGetLinkNumberOfSides(integer num)

Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
03-29-2005 03:24
Pretty self-descriptive. Return number of sides of linked object num. LINK_SET returns maximum number.

Nothing incredible, but ehh... it's something that could be useful. After all the other functions we "need." :rolleyes:
_____________________
---
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
04-25-2005 07:01
This can be done with a script in the linked prim, and a couple of llMessageLinked calls.

- Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
04-25-2005 07:31
I realize that, but it requires a script in each prim for the task.

I'm rather sympathetic toward most llGetLink- and llSetLink- proposals, to be honest. This sort of code would save time spent on server calls nicely for common operations.
_____________________
---
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
04-25-2005 07:49
Convenient? Of course.

But personally, if there is already a mechanism to accomplish a task, I'd rather LL work on something else.

My US$0.02...

- Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
04-25-2005 10:32
I'd have to agree with Jeffrey here. For a recent project, a game, I needed to update a large number of prims on the game board with new textures, colors, etc. The fact that I couldn't do it all from the parent prim meant that I had to use something on the order of 250 scripts, all told. Pretty big.

Then again, I did discover something interesting. Things like llSetLinkAlpha(), when done in a loop over 100 or so child prims at once, take a good 10-20 seconds, depending on the sim. Sending one message, "clear", to all child prims, and having each script in each child respond by changing itself appropriately happened almost instantaneously. llSetLink*() seems to involve some kind of overhead for finding each prim, and is ill-suited to iteration over a big link set. Draw whatever conclusions you'd like.
Nekokami Dragonfly
猫神
Join date: 29 Aug 2004
Posts: 638
04-25-2005 18:26
Right. If it's something done relatively commonly, and the current way of doing it is server intensive and laggy, it could stand to be revisited.

Guess that's what the feature voting thingie is for. Kinda.

neko
(Still boggled by the 23d proposal, with 166 votes... nothing against ponies, but why not ask for a general purpose quadruped animal while you're at it? Then you could combine the Mule proposal, not to mention.... ah, never mind.)