-
Posts
2,120 -
Joined
-
Last visited
Reputation
214 ExcellentRecent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
We have a vehicle flag: VEHICLE_FLAG_NO_DEFLECTION_UP This may or may not be what you are looking for
-
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
-
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
-
Calling a Function in Another Script
Dora Gustafson replied to Amphei Jierdon's topic in LSL Scripting
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 -
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
-
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
-
Dora Gustafson changed their profile photo
-
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:
-
Seeking a script for object sight trackinga
Dora Gustafson replied to AlbricJackson's topic in LSL Scripting
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: -
Resizing Script for Non-Linked Object
Dora Gustafson replied to Quinn Reinerman's topic in LSL Scripting
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? -
Get link to orbit surface of sphere (PLEASE HELP)
Dora Gustafson replied to Lylahbelle's topic in LSL Scripting
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: -
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:
-
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:
-
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:
-
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:
-
Disallowing two (or more) of the same object
Dora Gustafson replied to ZachMatheson's topic in LSL Scripting
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: