Jump to content

Dora Gustafson

  • Content Count

  • Joined

  • Last visited

Community Reputation

209 Excellent

About Dora Gustafson

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. We have a vehicle flag: VEHICLE_FLAG_NO_DEFLECTION_UP This may or may not be what you are looking for
  2. This has not been suggested yet: string truncate_float_decimals( float x, integer n) { string s = (string)x; integer i = llSubStringIndex( s, "."); return llGetSubString( s, 0, i-1)+llGetSubString( s, i, i+n); } It is straight forward In this form it doesn't work with scientific notation and it does not round but it is simple and can easily be modified for special needs This code is not tested but the principle is
  3. JSON in LSL is slow compared to a similar task solved the traditional way with lists Avoid using JSON it in time critical applications Use JSON for complex list arrays when the execution time is not critical
  4. llMessageLinked is the way to go. Just be aware there is nothing secret about it. A script in the same prim that has the destination script can pick up the full message including prim number, number, message and key
  5. I may be wrong but in my book the script is running in an event handler and the event handle will be busy until the loop is finished. Thus it will stop other events while running and the event queue will build up. Virtually this is what the llSleep() does but in so many more words
  6. Just a matter of taste. Think of the definition: The statement after the "if clause" is executed if the clause is true AND this statement can be a simple statement or a compound statement. Where a compound statement is a compound of statements inside curly brackets
  7. Texture animations are by nature not synchronized, but if they are loaded to the viewer at the same time they are. For instance if you tp to a site and can see all the animated faces they will most likely be in sync The chance for sync is even better if all faces use the same texture (it is only loaded one time) :smileysurprised::smileyvery-happy:
  8. You don't want a script for that Simple, basic animations and other animations that do not animate at least neck and scull bones does exactly what you want, or rather the viewer does it for you. Use mouse cursor and keys: 'Alt Gr' + 'left mouse' to 'look' at an object/avatar and your avatar will keep looking at that object/avatar when it moves around :smileysurprised::smileyvery-happy:
  9. An object is either one prim or a link-set So a non-linked object must be one prim which is best resized in the viewer's editor Did you mean coalesced objects?
  10. I have a feeling you are complicating things unnecessarily If you make your orbiting object symmetrical to the center of the sphere and keeping only part of it visible, you can apply llTargetOmega() llTargetOmega() is easy, smooth and low lag :smileysurprised::smileyvery-happy:
  11. Notice the limit is just for channel zero, the public channel This is bad enough if you use it for debug messages to yourself, but you don't have to For debugging llOwnerSay() is much better, it has no throttle :smileysurprised::smileyvery-happy:
  12. If it is copy you could just rez another. That's what you usually do when copies are 'stolen' or lost somehow :smileysurprised::smileyvery-happy:
  13. Yes that is a miracle. The conditions for llAxes2Rot() are not fullfilled: "All three vectors must be mutually orthogonal unit vectors." It can not work on attachments as metioned bye Qui :smileysurprised::smileyvery-happy:
  14. I still don't understand rotations/quarternions fully and don't expect I ever will, but I have learned the mathematical rules and I have worked a lot with them Now I can do most things I want with rotations even though sometimes I need to rewrite several times before I get it right:smileyembarrassed: My advise is: Work with it, read examples an make them work, give yourself problems and solve them It takes time but there is no shortcut for normal people :smileysurprised::smileyvery-happy:
  15. Or it could detach the moment it hears the word. Only one attachment would remain. If it is the one attached to the skull is another question:smileyhappy: :smileysurprised::smileyvery-happy:
  • Create New...