|
Kr4zy String
Registered User
Join date: 6 Jul 2008
Posts: 7
|
07-25-2008 06:18
Hello can anyone help me i have finished building my apartments and everything is working fine but my window tinting system seems to be wrong i wrote this script and when i say /10 windows close it works great but when i tell them to open again it does nothing all textures ect are named propper could someone help me please. default { state_entry() { llListen(10,"", NULL_KEY, ""  ; } listen(integer channel, string name, key id, string message) { if (message == "windows close"  { // set the texture llSetTexture("black",ALL_SIDES); if (message == "windows open"  { llSetTexture("window",ALL_SIDES); } } } }
|
|
Urrong Urnst
Registered User
Join date: 12 Jul 2008
Posts: 49
|
07-25-2008 06:52
Your if statements arent closed. Put in this script and it should work: //copy from here default { state_entry() { llListen(10, "", "", ""  ; } listen(integer channel, string name, key id, string message) { if (llToLower(message) == "windows close" llSetTexture("black",ALL_SIDES); else if(llToLower(message) == "windows open"  llSetTexture("window",ALL_SIDES); } } //to here
|
|
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
|
07-25-2008 06:56
From: Kr4zy String Hello can anyone help me i have finished building my apartments and everything is working fine but my window tinting system seems to be wrong i wrote this script and when i say /10 windows close it works great but when i tell them to open again it does nothing all textures ect are named propper could someone help me please. default { state_entry() { llListen(10,"", NULL_KEY, ""  ; } listen(integer channel, string name, key id, string message) { if (message == "windows close"  { // set the texture llSetTexture("black",ALL_SIDES); if (message == "windows open"  { llSetTexture("window",ALL_SIDES); } } } } I am not in-world at the moment, but you can never get to "windows open" with your code. Try this: default { state_entry() { llListen(10,"", NULL_KEY, ""  ; } listen(integer channel, string name, key id, string message) { if (message == "windows close"  { // set the texture llSetTexture("black",ALL_SIDES); } else if (message == "windows open"  { llSetTexture("window",ALL_SIDES); } } }
|
|
Kr4zy String
Registered User
Join date: 6 Jul 2008
Posts: 7
|
07-25-2008 07:19
Thank you very much for your replys i have them working great now  thanks again.
|