Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Haha, ok built in delay?

Remo Brentley
Registered User
Join date: 7 Apr 2009
Posts: 10
06-06-2009 15:57
Aye...from my other thread I got the script to work, but it seems there is a built in delay, which kinda opens the two doors .2 seconds apart. Now normally this isnt a huge issue, but it is for a business, so I'm trying to be the most professional I can about this lol.

From: someone

llSetLinkPrimitiveParams(3 , [ PRIM_POSITION, pos_l_shrink - llGetPos(), PRIM_SIZE, scale_l_shrink]);

//Right Door
llSetLinkPrimitiveParams(2 , [ PRIM_POSITION, pos_r_shrink - llGetPos(), PRIM_SIZE, scale_r_shrink]);


I use that above, jw if theres a way to remove the delay or maybe if anyone has another idea as to achieve what I'm doing without a delay.

Thank you!
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
06-06-2009 16:36
There's an inherent delay in many LSL functions (see if you haven't already). One way to get around it in this case might be to change your tactics. Instead of sending a message to linked prims, consider unlinking the prims and sending a command with llSay on a hidden channel. The message will be received simultaneously by the two door prims, which can react with embedded scripts that use llSetPrimitiveParams instead of llSetLinkPrimitiveParams. They ought to respond at the same time.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
06-06-2009 17:14
similar to Roligs solution, you can leave them linked, but instead of having them react to a touch (or whatever), have them react to a link message... on of them can then include code to send out a link message on touch (or whatever)... it's the method I use for my own double doors.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Remo Brentley
Registered User
Join date: 7 Apr 2009
Posts: 10
06-06-2009 17:38
From: Void Singer
similar to Roligs solution, you can leave them linked, but instead of having them react to a touch (or whatever), have them react to a link message... on of them can then include code to send out a link message on touch (or whatever)... it's the method I use for my own double doors.


A link message? Never heard of that, is there a wiki page or some reading on that?
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
06-07-2009 03:00
From: Remo Brentley
A link message? Never heard of that, is there a wiki page or some reading on that?

https://wiki.secondlife.com/wiki/Category:LSL_Communications#Link_Message
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -