Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by trivis

  1. Does anyone knows how to create a texture for a tetrahedron-object. Is there a template somewhere? I want to create a tetrahedron with a drawing per side of that object. Thanks in advance, Trivis
  2. It works like a charm, @Wulfie Reanimator! Thanks again for your great educational effort :-) Very much appreciated. Kind regards, Triv
  3. Wow that is amazing @Wulfie Reanimator!!!!! You've put so much effort in answering my question. You're a hero! Will program this later today, if you dont mind, have to do some work first :-) T H A N K S
  4. Worked on the problem... it works fine when I use a "point object" which is left or right of a "avatar object". When the avatar object is a real avatar it doesnt work. The script is: default { touch_start(integer total_number) { key id; id = llGetOwner(); // avatar // id = "e9f7952f-2ac4-0cb7-db9d-4f9a61509593"; // object // target avatar vector avPos = llList2Vector(llGetObjectDetails(id,[OBJECT_POS]),0); rotation avRot = llList2Rot(llGetObjectDetails(id,[OBJECT_ROT]),0); // the math vector A = avPos - <0,1,0>*avRot; vector B = avPos + <0,1,0>*avRot; vector C = llGetPos(); vector AB = B - A; vector AC = C - A; float diff = (B.x-A.x)*(C.y-A.y)-(B.y-A.y)*(C.x-A.x); // left or right // diff > 0 left, diff < 0 right, diff == 0 front/back if (diff > 0 ) llOwnerSay("I am on the left"); if (diff < 0 ) llOwnerSay("I am on the right"); } } Is there anyone who is able to pull me out this deep well?
  5. Thanks Wulfie!, The new script isnt a problem, i am not testing and trying in an existing script :-) I will try to calculate and understand what you wrote where the solution is! But... the rotation of the target avatar is also involved, isnt it? Looks to me that this rotation is just the issue Thanks again, Trivis
  6. Still curious how i can decide if I am standing somewhere left or right of an target avatar. Any idea? Is llVecNorm the solution?
  7. Thank you @Mollymews! This will help for efficiently positioning beside the target avatar!
  8. Somehow I thought this would be easy, but I am still struggling with some rotation things (what's new lol). I am building a positioning HUD. This HUD needs to position me an exact distance left or right of a target-avatar. My rotation is not important (as i understood that a HUD cant rotate me after positioning). The id of the target avatar is known by using llSensor. The positioning of the target is, of course important. My question is how can I determine if I am standing somewhere left or right of my target-avatar (I can be standing in front of the or behind it), and after that positioning myself that exact distance left or right of my target? Thanks in advance for your help, Trivis
  9. Wonderful! Thank you Xiija!! This does the job! Still discovering how you did this :-) but many thanks. Kind regards, trivis
  10. At first it seemed not too difficult to tackle the following problem, but in the end I did not manage to do it. Rotations are the story of my (second) life :-) The problem: I have an object consisting of several prims. When someone touches the object i would like to point one of the childprims to the avatar who touched the object. See attached picture. The rotation of (only!) that childprim only need to be done around in its XY-plane, so only a rotation around its Z-axis. Does anyone has a working solution? Thanks in advance for any help.
  11. Thank you all for your response! Highly appriciated. In the most simple version it would be nice to give the gift a 'unique' number of a sequence... That is: the first recipient will get numer 1, the second numer 2, the third nr3 and so on... But it is clear to me that i have to find another way :-) Thanks again! trivis
  12. Dear scripters, I am looking for a way to change the object description of an item i have in the content tab of a giver object. The idea is that when someone touches the main object the description of the object to give away will be changed first, so i can make the gift more personalized. Havent found a way yet to do so. Was wondering if it is possible, and if yes, how so? Thanks in advance!
  13. Thank you so much for this clear explanation, Innula!!! Very much appreciated. Big hug! Trivis
  14. Thanks Innula! This is how i have done it so far. Have a long negative channel based on the ownerkey and clothingobject. Works all fine. This means that the listener in the clothing is ALWAYS listening... most of the time for 'nothing'. So I was thinking if the clothing would not listen at first but use a timer to llRegionSayTo and let the hud listen, wouldnt that be more efficient? Thanks again for your swift response, Innula. Trivis
  15. Dear all, Perhaps you have an answer to my question. I have two objects. One is a clothing and the other one is a hud. The hud is for changing the texture of the clothing. So clothing would be worn "often" and the hud "sometimes". To make the texture-exchange as easy as possible, I have two scripting options for both objects to see eachother. One is that the clothing has a listener that is always open and reacts with llRegionSayTo. The other options is that the clothing has a timer, for let's say every 10 or 15 seconds and the hud has a listener. After the two object "see" eachother the exchange of information can start. Will there be a best option of those two options? Thanks in advance, Trivis
  • Create New...