Jump to content

Xiija

Resident
  • Posts

    915
  • Joined

  • Last visited

Everything posted by Xiija

  1. Burn2 is happening NOW!!. . Come see the amazing builds, enjoy the free rides and tours, and get tons of free gifts! Be a part of Burning Man at the Second Life Burning man Regional...Burn2 ! Please de-script as much as possible to help stamp out LAG! ( If you have bad lag, drop your graphics & draw distance as low as you can ) http://maps.secondlife.com/secondlife/Burning Man- Deep Hole/143/35/32
  2. Since you are new to scripting, here is an example of how to do what you want... you can change the line..... flag = ( ++flag % 3 ) to use % 4, %5 etc , for a longer pause.. float gap = 2.0; float alpha = 0.3; integer toggle; integer flag = -1; default { state_entry() { llSetLinkAlpha(LINK_SET, 0.3, ALL_SIDES); llSensorRepeat("", NULL_KEY, AGENT, 10, PI,2); } sensor(integer total_number) { if ( toggle == FALSE ) // toggle is false, switch it to true and only trigger the timer ONCE when someone is in range { toggle = TRUE; // toggle is now true, and the IF above will not fire again untill reset llSetTimerEvent(0.2); } } no_sensor() // reset all variables and turn off timer fading { alpha = 0.3; llSetLinkAlpha(LINK_SET, alpha, ALL_SIDES); flag = -1; toggle = FALSE; llSetTimerEvent(0.0); } timer() { flag = (++flag % 3); // add one to the flag variable ... (++flag % 3) ... will loop from 0 to 2 and start at 0 again // fade out while (alpha >= 0.0) { alpha -= 0.0001; // adjust alpha BEFORE setting it llSetLinkAlpha(LINK_SET, alpha, ALL_SIDES); } if( flag == 2 ) // every GAP seconds the flag gets increased until it reaches 2 .... this is when the fade IN happens ONLY when flag is 2 { // fade in while (alpha < 0.3) { alpha += 0.0001; llSetLinkAlpha(LINK_SET, alpha, ALL_SIDES); } } llSetTimerEvent(gap); } }
  3. Burn2 opens to the public at 10am SLT Saturday, October 21. . Come see the amazing builds, enjoy the free rides and tours, and get tons of free gifts! Be a part of Burning Man at the Second Life Burning man Regional...Burn2 ! Please de-script as much as possible to help stamp out LAG! http://maps.secondlife.com/secondlife/Burning Man- Deep Hole/143/35/32
  4. Old topic, but i figured i'd post here as this was a page that came up when i was researching this sim crossing stuff. We've been trying to use keyframed motion for a multi sim tour, and were having trouble with avatars standing up after sim crossings ( when wearing an AO), but the following code seems to work for AO or not... hope this helps someone, i've been testing for a while ..i *think* it's all good ... I had to use a "blank" anim ( from MP? ) to get the SetAnimationOverRide to take hold. ( may be posted too soon, not been tested with multiple avi's yet ) changed(integer change) { if (change & CHANGED_LINK) { new = llGetNumberOfPrims(); if( new > old) // new avi has sat, not when someone gets off { agent = llGetLinkKey( llGetNumberOfPrims() ); if (agent) { llRequestPermissions(agent, PERMISSION_TRIGGER_ANIMATION | PERMISSION_OVERRIDE_ANIMATIONS ); } } old = new; } if (change & CHANGED_REGION) { integer prims = llGetNumberOfPrims(); integer sl; for(sl = 1 ; sl < prims; ++sl) { key this = llAvatarOnLinkSitTarget(sl); if( this != NULL_KEY ) { if (permz & PERMISSION_TRIGGER_ANIMATION) { string anim = llGetAnimationOverride("Sitting"); llStopAnimation( anim ); llStartAnimation(anim); } if (permz & PERMISSION_OVERRIDE_ANIMATIONS) { llSetAnimationOverride( "Sitting", "blank"); llSetAnimationOverride( "Sitting", "sit"); } } } } } run_time_permissions(integer perm) { permz = perm; if (permz & PERMISSION_TRIGGER_ANIMATION) { string anim = llGetAnimationOverride("Sitting"); llStopAnimation( anim ); llStartAnimation(anim); } if (permz & PERMISSION_OVERRIDE_ANIMATIONS) { llSetAnimationOverride( "Sitting", "blank"); llSetAnimationOverride( "Sitting", "sit"); } }
  5. to stop particles, use ... llParticleSystem( [ ] ); your listen event is where they are starting from, yes?
  6. if the main problem was people using the same channel in their HUDs ... chan = 0x80000000 | (integer)("0x"+(string)llGetOwner()); // unique channel based on owners UUID llListen (chan,"","",""); ( now each HUD has a unique channel )
  7. trutru, and easier than a list , ( even tho i already have the names in a list )
  8. so bizarre , i just made a build for SL burning man and needed a way to tell how many were sitting, and was going to use a list... then i saw this.. it works great, tysm
  9. not sure about the arrow button, i use Void's dialog code, and it works great http://wiki.secondlife.com/wiki/User:Void_Singer/Functions ( at the bottom) some other things tho? your OP says 10 meters, but your sensor says 96, key id = llDetectedKey(0); this won't work in state entry... do you need ... id = llGetOwner()_ ? while((i < num_detected) && (i < 9)) ..... not sure if this will only send 9 names to dialog or not?
  10. just curious, people always say to use a box for smallest physics LOD , would it be possible to use a simple plane, if you did not need to worry about the physics in SL for your model?
  11. just curious, is it possible to set the "center" of an object to one edge in Blender? i have a crane arm, and would like it to pivot from one end. thanx for any help
  12. The Burning Man event is only 4 weeks away! Come get a plot for your build or camp Plot sales are here... http://maps.secondlife.com/secondlife/Burning Man- Deep Hole/184/36/24 Free plots via Plottery or art camp application on the website here... http://www.burn2.org/ Come by and at least take a look around, it's a great place to meet new people
  13. The Burning Man event is only 4 weeks away! Come get a plot for your build or camp Plot sales are here... http://maps.secondlife.com/secondlife/Burning Man- Deep Hole/184/36/24 Free plots via Plottery or art camp application on the website here... http://www.burn2.org/ Come by and at least take a look around!
  14. sweet, works great tysm i'm trying to zero out the rot after 10 clicks , but can't figure out the syntax? using this isn't working, i know i'm forgetting something, and have tried a few things but they don't work. llSetRot( ZERO_ROTATION * llGetRot() ); Thanx for any help
  15. hoping someone has done something like this before.. setup: it's for an OCD build, you touch a picture until it hangs straight. When you touch the picture, it rotates -45 degrees on the X axis, next touch, it rotates to +30 degrees on the X axis, then -15 degrees, and finally goes to Zero Rotation and gives a msg in local that the pic is finally straight. this works ok when the Z axis is zero, but as soon as the Z axis is changed, the pic is tilted and no longer straight when facing the toucher. ( there needs to be some rotation on the Y axis to correct this? ) **the actual code uses a random number and a variable ...tog = 1 ... llSetRot( llGetRot() * llEuler2Rot( <(llFrand(18.0) + 1.0) * (tog = -tog), 0, 0> * DEG_TO_RAD )); Thanx for any help or advice
  16. if your "off" has no animation, try... llSetTextureAnim(FALSE, ALL_SIDES, 0, 0, 0.0, 0.0, 1.0);
  17. As far as i can tell, the feature you are talking about is..... .. having the HUD communicate the info to the prims? if so, mebbe use llRegionSay() ( http://wiki.secondlife.com/wiki/LlRegionSay ) you can parse the sent info in the other script?
  18. not sure what the question is? is some part not working, or do you need help with something?
  19. Xiija

    Clock

    free clock with a script you can use in it.... https://marketplace.secondlife.com/p/In-World-Time/7126226
  20. the only way i know to do it is in chat? touch_start(integer total_number) { llSay(0, "secondlife:///app/agent/85987995-ab09-42db-9bd0-e0c558aa8c14/im " ); } that puts a clickable link in chat, which opens an IM when clicked
  21. to rotate the root, ( and the whole linkset..) 90 degrees... llSetLinkPrimitiveParamsFast(1,[PRIM_ROTATION,llGetLocalRot() * llEuler2Rot(<0,0,90>*DEG_TO_RAD)]); llSetLinkPrimitiveParamsFast(1,[PRIM_POSITION,llGetLocalPos() + <0.0 ,0.2, 0.0> ]); // if you need to move, do it here to IM someone from a link in a script... put this in a string and "say" it on your button click? ( using my UUID, replace with yer own ) secondlife:///app/agent/06451596-818c-4975-8bc0-058ab2fe8274/im
  22. if you want to try a single prim with a texture - touch detect, here is a small example to play with? integer numberOfColumns = 3; integer numberOfRows = 3; default { touch_start(integer num_detected) { key id = llDetectedKey(0); integer face = llDetectedTouchFace(0); vector touchST = llDetectedTouchST(0); integer currentCellNumber = llFloor(touchST.x*numberOfColumns) + (numberOfRows -llCeil(touchST.y*numberOfRows))*numberOfColumns + 1; llOwnerSay((string)currentCellNumber); if(currentCellNumber == 1) { } if(currentCellNumber == 2) { } } }
  23. ah okay thanks If I did, i guess the first page I would edit is the one that says how anyone can create a page lol
×
×
  • Create New...