Jump to content

VeranniCakes

Resident
  • Posts

    41
  • Joined

  • Last visited

Reputation

6 Neutral

Recent Profile Visitors

335 profile views
  1. 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.
  2. 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.
  3. 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); } }
  4. The code is telling me that this line is an error llSetLink.... PRIM_COLOR, color, .....
  5. Ok and last question what if I wanted the object to change different colors so one block changes blue then yellow then orange
  6. 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?
  7. 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]); } }
  8. Aghh Ok it's in two places so I had to copy paste it twice! ok I got it. thanks again.
  9. 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]); } }
×
×
  • Create New...