-
Posts
41 -
Joined
-
Last visited
Reputation
6 NeutralRecent Profile Visitors
335 profile views
-
If you want to be mildly more sophisticated, there are better ways to build a HUD than with separate ON/OFF buttons, but the way you are doing it will work just fine. _________________________________________________________________________________________________________________________________________________________________ Yeah It's an easy project, I'm a beginner. I guess it can pass as sophisticated, thanks lol.
-
Ok! wow oof! Thank you!! and for replying thks. That's what I did wrong?! I just putting the SetPrimitiveParams in the wrong object? lol I was thinking it was the Hud that will do all the work lol, Ok I will indent my braces more and aline them better.
-
Hello, I need help with this script pls, I'm a beginner but I know a little bit about coding. I'm trying to turn on a light with a hud, but the light isn't turning on. Here is my code. //This is the HUD script //This is a simple Light Hud, turning a Light on and off. //The light source is on an object called GlowStick, The HUD is called Glowstick HUD //PRIM_POINT_LIGHT is being used No PRIMGLOW codes //Channel being used is 100 integer switch; integer ONButton = 2; integer OFFButton = 3; default { state_entry() { } touch_start(integer total_number) { integer press = llDetectedLinkNumber(0); if(press == ONButton) { llOwnerSay("ON Button"); llRegionSayTo(llGetOwner(),100,"ON Button Connected"); llSetPrimitiveParams([PRIM_POINT_LIGHT, TRUE, <0.2, 0.8, 0.8>, 1.0, 10, 0.75 ]); } else if(press == OFFButton) { llOwnerSay("OFF Button"); llRegionSayTo(llGetOwner(),100,"OFF Button Connected"); llSetPrimitiveParams([PRIM_POINT_LIGHT, FALSE, <0.2, 0.8, 0.8>, 1.0, 10, 0.75 ]); } } } _____________________________________________________ //Glowstick Object default { state_entry() { llListen(100,"Glow Stick HUD","",""); } listen(integer channel, string name, key id, string message) { if(llGetOwnerKey(id) != llGetOwner() ) return; else llOwnerSay(message); } }
-
I need to have two separated objects blink at the same time
VeranniCakes replied to VeranniCakes's topic in LSL Scripting
Ok I will try this tonight thank you -
I need to have two separated objects blink at the same time
VeranniCakes replied to VeranniCakes's topic in LSL Scripting
The code is telling me that this line is an error llSetLink.... PRIM_COLOR, color, ..... -
I need to have two separated objects blink at the same time
VeranniCakes replied to VeranniCakes's topic in LSL Scripting
Ok and last question what if I wanted the object to change different colors so one block changes blue then yellow then orange -
I need to have two separated objects blink at the same time
VeranniCakes replied to VeranniCakes's topic in LSL Scripting
I didn't understand the question, I thought she wanted me to guess the answer, but she helped great. Sorry about that. Ok so let's say I want to change One object to flash purple and one to flash blue how can I do that? -
Ok so I have two objects. both of them light up at different times, but I want them to change colors, how do I get them to change colors? Here's a video of what I have Here's my code so far integer iON; default { state_entry() { llSetTimerEvent(3.0); llSetLinkPrimitiveParamsFast(LINK_SET,[34,2,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON, 34,1,PRIM_FULLBRIGHT, ALL_SIDES, !iON, PRIM_GLOW, ALL_SIDES, 0.05*!iON]); } timer() { iON = !iON; llSetLinkPrimitiveParamsFast(LINK_SET,[34,2,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON, 34,1,PRIM_FULLBRIGHT, ALL_SIDES, !iON, PRIM_GLOW, ALL_SIDES, 0.05*!iON]); } }
-
I'm trying to get two cubes to flash at different times, but as two linked objects can someone help me with this? I got this code from Rolig Loon and so far she told me to subsitute this section llSetLinkPrimitiveParamsFast(LINK_SET,[34,2,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON, 34,1,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON]); ____Here is the full code_______________________________________________________________________________________________________________________ integer iON; default { state_entry() { llSetTimerEvent(3.0); llSetLinkPrimitiveParamsFast(LINK_SET,[34,2,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON, 34,1,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON]); } timer() { iON = !iON; llSetLinkPrimitiveParamsFast(LINK_SET,[34,1,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON, 34,2,PRIM_FULLBRIGHT, ALL_SIDES, iON, PRIM_GLOW, ALL_SIDES, 0.05*iON]); } }
-
I need to have two separated objects blink at the same time
VeranniCakes replied to VeranniCakes's topic in LSL Scripting
ok thanks. I'll just keep asking around -
I need to have two separated objects blink at the same time
VeranniCakes replied to VeranniCakes's topic in LSL Scripting
Is there a way to get them to blink at different times?