Jump to content

crazyben0721

Resident
  • Posts

    7
  • Joined

  • Last visited

Everything posted by crazyben0721

  1. Ahh thank you outtaspace. Now I understand it more clearly. Thank You Benjamin Betancourt
  2. Hi, I read the wiki in regards to LSL HTTP Server. I understand you have to create a URL and release it. But what I don’t understand is how the llRequestURL( ); works. If it generate a URL for you to use to send a request to the LSL Script, will it generate a different URL every time you run script? For me it makes no sense if you have to update the URL, on a PHP script, every time you are sending a request or when the URL changes. Please help me shed some light to this. Thank You Benjamin
  3. I have one question though. Should I avoid physics for now because I Just starting scripting in LSL. I tend to come up with up with ideas that tend up to be complicated. Also I get stuck with complicated things because I like solving it.
  4. I need helping building a seesaw. I have done two script in the attemp to make this work. None of them work very well. I tried to use SL physics. integer benSwitch = 1; default { state_entry() { llSay(0, "Hello, Avatar!"); llSetStatus(STATUS_BLOCK_GRAB, TRUE); } touch_start(integer total_number) { if ( benSwitch == 1 ) { llApplyRotationalImpulse(<0,0,20>,TRUE); benSwitch = 0; } else { llApplyRotationalImpulse(<0,0,-20>,TRUE); benSwitch = 1; } } } I tried with llPassCollisions TRUE and FALSE and it was still not so good. integer benSwitch = 1; default { state_entry() { llSay(0, "Hello, Avatar!"); llSetStatus(STATUS_BLOCK_GRAB, TRUE); llPassCollisions( TRUE ); } collision_end(integer num) { if ( benSwitch == 1 ) { llApplyRotationalImpulse(<0,0,20>,TRUE); } else { llApplyRotationalImpulse(<0,0,-20>,TRUE); } } collision_start(integer num) { if (benSwitch == 1) { benSwitch = 0; } else { benSwitch = 1; } } } Thank You in Advance Benjamin Betancourt http://i10.photobucket.com/albums/a147/crazyben21/seesawSL.jpg
  5. Hello I'm new to LSL Scripting and to SL. So far I'm working on a script that will set a texture of a prim when in flight and set to another texture when not in flight. So far this the code that I have and I think is not working probably because I'm using it in a infinite loop. I'm NOT sure what I'm doing wrong. :/ integer ownerInfo; integer flightSwitch; integer flightStaus(integer ownerStatus) { //Returns a 1 if Owner is flying. if( ownerStatus & AGENT_FLYING ) { return 1; } else { return 0; } } default { changed( integer change ) { if (change & CHANGED_OWNER) { llResetScript(); } } on_rez(integer start_param) { llResetScript(); } state_entry() { key ownerKey = llGetOwner(); ownerInfo = llGetAgentInfo(ownerKey); //Check if Owner is flying or not. flightSwitch = flightStaus(ownerInfo); if (flightSwitch == 1) { state isFlying; } else { state notFlying; } } touch_start(integer total_number) { llSay(0, "Touched."); } } state isFlying { state_entry() { llSetPrimitiveParams([PRIM_TEXTURE, ALL_SIDES, TEXTURE_PLYWOOD, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0]); //Check if Owner is flying or not. flightSwitch = flightStaus(ownerInfo); if (flightSwitch == 1) { state isFlying; } else { state notFlying; } } } state notFlying { state_entry() { llSetPrimitiveParams([PRIM_TEXTURE, ALL_SIDES, TEXTURE_TRANSPARENT, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0]); //Check if Owner is flying or not. flightSwitch = flightStaus(ownerInfo); if (flightSwitch == 1) { state isFlying; } else { state notFlying; } } }
×
×
  • Create New...