Change font size
It is currently Tue Dec 18, 2018 1:10 pm

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: Listen Switch
PostPosted: Tue Feb 05, 2008 9:18 am 
User avatar

Joined: Tue Feb 05, 2008 12:13 am
Posts: 24
Location: Central California
//listen switch

default

{
state_entry()
{
llListen(0, "", NULL_KEY, ""); // start listening
}

listen(integer channel, string name, key id, string message)
{
if (message == "off") {

llSetColor(<0,0,0>,ALL_SIDES); //turn off stuff here
}
else {
if (message == "on")
llSetColor(<1,1,1>,ALL_SIDES); //turn on stuff here

}
}
}

_________________
"...a book with no readers is not a fully effective work of art." Rudy Rucker


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Users browsing this forum: legacy_google [bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net