|
rubiq Campbell
Registered User
Join date: 4 Apr 2006
Posts: 22
|
05-18-2006 08:16
I have three linked objects p1, p2, p3. I want p1 to send a message to p2 and p3 to start moving towards an object known as box, as soon as they get the message they race to sit on an object known as box. The first one to reach box should sit while the other rotate continuosly. Can somebody help me to start writing the code. please help I will greatly appreciate that.
|
|
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
|
05-18-2006 22:56
Linked objects move all together. Linked prims are taken as one object. Do you want them to make out doing a ding-dong race? It doesn't become a real race as long as you link them all.
_____________________
 Seagel Neville 
|
|
rubiq Campbell
Registered User
Join date: 4 Apr 2006
Posts: 22
|
Three Objects
05-23-2006 11:43
What if I don't link them what would be the best way for p1 to send a message to p2 and p3 to move towards an object known as "box", as soon as they get the message they race to sit on the object "box." The key thing is the one thats get there first get to sit while the other rotate continuously. Please help with a simple code to perform such task.
|
|
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
|
05-23-2006 11:57
That's not a simple task, so it won't be a simple script. To communicate between objects (unlinked) use llWhisper/llSay/llShout on a high channel number of your own choosing. There are many ways to move objects. When one thinks it got there first, it should message the others.
_____________________
~ Tiger Crossing ~ (Nonsanity)
|
|
Julia Banshee
Perplexed Pixie
Join date: 16 Jan 2006
Posts: 97
|
05-23-2006 12:28
From: Tiger Crossing When one thinks it got there first, it should message the others. That can lead to multiple racers thinking they got there first, if two or more receive their at_target or collision events before they receive the word from the other racer. Better to have the target box announce which it first detected colliding with it. If that's not an option, then all objects should announce when they got to the target, and include a timestamp, with which they can determine who really got there first. Um, yeah, this would not be a simple script by any stretch of the imagination.
|
|
ed44 Gupte
Explorer (Retired)
Join date: 7 Oct 2005
Posts: 638
|
05-23-2006 17:59
I hope I am wrong, but I believe the lsl time stamp resolution is at least one second.
|
|
Julia Banshee
Perplexed Pixie
Join date: 16 Jan 2006
Posts: 97
|
05-26-2006 21:43
From: ed44 Gupte I hope I am wrong, but I believe the lsl time stamp resolution is at least one second. Umm, it gives six digits past the decimal point. That would imply microsecond accuracy, no?
|