|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
09-27-2008 12:05
cant seam to get this to work, anyone have a clue on what is wrong? the dialog works fine but i cant get the -8795 to listen hear it touch_start(integer numz) { key id = llDetectedKey(0); llDialog(id, "Pumper Panel", ["Connect","Shut Down"], -1000); llListen(-1000, "", llGetObjectName(), ""); llListen(-8795,"","LFDMT Hose",""); } listen( integer channel, string name, key id, string message ) { if(channel == -1000) { if(message == "Connect") { state hunt; } else if(message == "Shut Down") { llWhisper(0,"Pump Shut Down"); state default; } } else if(channel == -8795) { if(message == "takewater") { tankz -= 3; llWhisper(0,"-water"); textz(); } else if(message == "takefoam") { tankz -= 2; textz(); } } }
|
|
Crystal Falcon
Registered Silly User
Join date: 9 Aug 2006
Posts: 631
|
09-27-2008 12:12
From: Mrc Homewood llListen(-8795,"","LFDMT Hose",""  ; I didn't look beyond noticing that where you have "LFDMT Hose" should be a key and you have the name set to "". Did you mean for that to be llListen(-8795,"LFDMT Hose", NULL_KEY,""  ;? 
|
|
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
|
09-27-2008 12:23
[EDIT]
figured out problem forgot it had to be in state entry for listening
|
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-27-2008 13:56
the first one too is incorrect. you're asking for the object's name in the key field, an object can't listen to itself llListen(-1000, "", llGetObjectName(), ""  ;
|