I am not very knowledgeable when it comes to scripting but I am looking for a way to move four objects, say four doors, by clicking on one of them or maybe another "switch" prim. Is this possible?
Many thanks in advance for any help offered.
These forums are CLOSED. Please visit the new forums HERE
Multi-Move |
|
|
Del Wellman
Registered User
Join date: 24 Jan 2007
Posts: 168
|
02-13-2008 11:14
I am not very knowledgeable when it comes to scripting but I am looking for a way to move four objects, say four doors, by clicking on one of them or maybe another "switch" prim. Is this possible?
Many thanks in advance for any help offered. |
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
yes...
02-13-2008 11:46
You pick a channel for the objects to use to chat to one another, such as
integer ch = -12345; // you pick then, the touched object does something like llSay( ch, "I've been touched" ; // you pick the message to use.All the other objects do something like llListen( ch, "", "", "" ); and listen( integer ch, string n, key k, string msg ) { handle whatever the msg is on channel ch here. } There are lots of more specific examples available in the script library and wikis. _____________________
So many monkeys, so little Shakespeare.
|
|
Del Wellman
Registered User
Join date: 24 Jan 2007
Posts: 168
|
02-13-2008 13:41
Thanks for that qick reply Lee must go look in the library and wikis now I know what I am looking for.
|
|
Billy Islander
Registered User
Join date: 3 Nov 2006
Posts: 35
|
02-13-2008 16:54
have a look at my post here Del
/54/c9/240454/1.html if the 4 objects are linked it will work as is , if they are not linked you would have to set the contoller to give the message on 4 channels 1 to each prim. to be moved , hope that helps. |