Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

bed menus conflicting with each other

Ruby Garrigus
Registered User
Join date: 26 Feb 2007
Posts: 4
08-10-2007 14:39
Hi, i build beds and i have two that are currently using each others commands...ie, when one bed is clicked on the balls on ther other bed change to the same position.
i figure i need to change the channel..but not sure how.
can anyone help me please?

sorry if this is in the wrong section
Daten Thielt
Registered User
Join date: 1 Dec 2006
Posts: 104
08-10-2007 15:07
first of all this is a scripting question, second of all look for the llListen(
Ruby Garrigus
Registered User
Join date: 26 Feb 2007
Posts: 4
08-11-2007 08:17
thanks for your help....it was sooooo useful
Ed Gobo
ed44's alt
Join date: 20 Jun 2006
Posts: 220
08-12-2007 05:16
make a global int for your bed's channel number:

CODE

int gChannel;


in the state entry for your main script:

CODE

gChannel = -llFloor (llFrand (90000.0)) + 10000;
llListen(gChannel, "", "", ""); // you may want to qualify this
llDialog(llGetOwner(),. . ., . ., gChannel); // statements


and each bed will have a different channel.