OK, I won't write it for you either. :smileywink: Since you asked for a poke in the right direction, let me suggest that everything you want to accomplish will have to be done in your script's listen event. That means that you have to open channel 7 first with llListen(7,"","","")somewhere else in the script first.
Then, your listen event has to listen for the two possible responses and decide what to do when it hears either one. So, you'll need to test for if (message == "suscon")and then do the stuff appropriate to tht message and ask else if (message == "suscoff")and do that stuff. The "stuff" that you do will all be accomplished with a call to llSetAlpha and one to llSetLinkPrimitiveParamsFast, setting the parameter PRIM_GLOW . That should be enough of a poke.Check the LSL wiki for details, and post your script in the LSL Scripting forum if you get stuck.
Question
Rolig Loon
OK, I won't write it for you either. :smileywink: Since you asked for a poke in the right direction, let me suggest that everything you want to accomplish will have to be done in your script's listen event. That means that you have to open channel 7 first with llListen(7,"","","") somewhere else in the script first.
Then, your listen event has to listen for the two possible responses and decide what to do when it hears either one. So, you'll need to test for if (message == "suscon") and then do the stuff appropriate to tht message and ask else if (message == "suscoff") and do that stuff. The "stuff" that you do will all be accomplished with a call to llSetAlpha and one to llSetLinkPrimitiveParamsFast, setting the parameter PRIM_GLOW . That should be enough of a poke. Check the LSL wiki for details, and post your script in the LSL Scripting forum if you get stuck.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now