Xiija

Resident
  • Content count

    510
  • Joined

  • Last visited

Community Reputation

73 Excellent

About Xiija

  • Rank
    Lotus Eater

Recent Profile Visitors

266 profile views
  1. Transparency and Colour Rotation Help please

    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); } }
  2. 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
  3. 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"); } }
  4. Particle emission with llSay

    to stop particles, use ... llParticleSystem( [ ] ); your listen event is where they are starting from, yes?
  5. best way owner set texture?

    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 )
  6. New llGetObjectDetails() constants ready?

    trutru, and easier than a list , ( even tho i already have the names in a list )
  7. New llGetObjectDetails() constants ready?

    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
  8. Get UUID of Avatar selected from Dialog Menu

    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?
  9. great info in this topic, tysm
  10. Mesh triangles in LOD

    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. LOD models' relative position in space.

    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. Rotation & axis help

    works! tysm ::hugs::
  15. Rotation & axis help

    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