|
Jonesey Spitteler
Builder / Shop Owner
Join date: 19 May 2007
Posts: 60
|
08-26-2007 15:15
Hi I'm having some problems with this script I made. I can't get it to change the textures. I have the textures in the prims inventory and yes, I am the owner  key owner; default { state_entry() { owner = llGetOwner(); llListen(8,"",owner,"on"  ; llListen(8,"",owner,"off"  ; } listen(integer channel, string name, key id, string m) { if (m == "on"  { llSetTexture("lighteffect", 1); llSetTexture("lighteffect", 2); } if (m == "off"  { llSetTexture("transparent", 1); llSetTexture("transparent", 2); } } } All help is welcome 
_____________________
Best Regards, Jonesey Spitteler - The Partyshack -
|
|
Jonesey Spitteler
Builder / Shop Owner
Join date: 19 May 2007
Posts: 60
|
08-26-2007 15:18
nvm I fixed it myself...
_____________________
Best Regards, Jonesey Spitteler - The Partyshack -
|
|
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
|
08-27-2007 04:32
I hope you're not using variable names like "m" for real code...  Also please post the fix for others.
|
|
Darko Lednev
Registered User
Join date: 20 Aug 2007
Posts: 31
|
08-27-2007 06:43
Wouldn't be better with only one llListen command like this: ////////////////// key owner; default { state_entry() { owner = llGetOwner(); llListen(8,"",owner,""  ; } listen(integer channel, string name, key id, string m) { if (m == "on"  { llSetTexture("lighteffect", 1); llSetTexture("lighteffect", 2); } if (m == "off"  { llSetTexture("transparent", 1); llSetTexture("transparent", 2); } } } /////////////////
|