Jump to content

Search the Community

Showing results for tags 'llsittarget'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Important News
    • Announcements
  • People Forum
    • Your Avatar
    • Make Friends
    • Lifestyles and Relationships
    • Role Play
    • General Discussion Forum
    • Forums Feedback
    • Second Life Education and Nonprofits
  • Places and Events Forum
    • Favorite Destinations
    • Upcoming Events and Activities
    • Games in Second Life
  • Official Contests, Events & Challenges
    • Challenges
    • Contests
  • Creation Forum
    • Fashion
    • Art, Music and Photography
    • Animation Forum
    • Bakes on Mesh
    • Environmental Enhancement Project
    • Machinima Forum
    • Building and Texturing Forum
    • Mesh
    • LSL Scripting
    • Experience Tools Forum
  • Technology Forum
    • Second Life Server
    • Second Life Viewer
    • Second Life Web
    • General Second Life Tech Discussion
    • Mobile
  • Commerce Forum
    • Merchants
    • Inworld Employment
    • Wanted
  • Land Forum
    • General Discussion
    • Mainland
    • Linden Homes
    • Wanted
    • Regions for Sale
    • Regions for Rent
  • International Forum
    • Deutsches Forum
    • Foro en español
    • Forum in italiano
    • Forum français
    • 日本語フォーラム
    • 한국어 포럼
    • Fórum em português
    • Forum polskie
    • المنتدى العربي
    • Türkçe Forum
    • Форум по-русски
  • Answers
    • Abuse and Griefing
    • Account
    • Avatar
    • Creation
    • Inventory
    • Getting Started
    • Controls
    • Land
    • Linden Dollars (L$)
    • Shopping
    • Technical
    • Viewers
    • Everything Else
    • International Answers


  • Commerce
  • Featured News
  • Inworld
  • Tools and Technology
  • Tips and Tricks
  • Land
  • Community News


  • English
  • Deutsch
  • Français
  • Español
  • Português
  • 日本語
  • Italiano
  • Pусский
  • Türkçe

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me

Member Title

Found 3 results

  1. Hi everyone thanks for looking .I have a strange mesh and prim seating problem with a 38m high mesh . This behaves oddly placing my seat at link one at around 19m up in the air ,not at link two as requested . by llSetClickAction(CLICK_ACTION_SIT); llSetLinkPrimitiveParamsFast(1,[ PRIM_SIT_TARGET, FALSE, ZERO_VECTOR,ZERO_ROTATION ]); llSetLinkPrimitiveParamsFast(2,[ PRIM_SIT_TARGET, TRUE,<.05,0.11,0.01>,<0.0, 0.0, 0.0, 1.0> ]); I had some grateful help from Crystal to work out what is linked where but LSL does not return any linked data! Can anyone help? I click this script in my seat when seated on a seat with four links it produces from the code below this result: [23:45] test: line:0, 34|1|41 [23:45] test: line:1, 34|2|41 [23:45] test: line:2, 34|3|41 [23:45] test: line:3, 34|4|41 [23:45] test: No Object Data found As you can see 'llGetLinkPrimitiveParams(' does not return the data from data set what am I missing please? list GetSitTargetLinks() { integer iLinkCount = llGetNumberOfPrims(); integer iIndex; list lRequest = []; for (iIndex = 1; iIndex <= iLinkCount-1 ; iIndex++) { lRequest += [ PRIM_LINK_TARGET, iIndex, PRIM_SIT_TARGET ]; llOwnerSay("line:" +(string)(iIndex-1)+", "+(string) PRIM_LINK_TARGET+"|"+ (string)(iIndex)+"|"+ (string)PRIM_SIT_TARGET ); } list lData = llGetLinkPrimitiveParams(1, lRequest); if(llGetListLength(lData) == 0) llOwnerSay("No Object Data found"); list lSitTargetLinks = []; for (iIndex = 1; iIndex <= iLinkCount-1 ; iIndex++) { integer bSitTarget = llList2Integer(lData, (iIndex - 1) * 3); if (bSitTarget) { llOwnerSay("Got Seat @"+(string)iIndex); lSitTargetLinks += iIndex; } } return lSitTargetLinks; } default { touch_start(integer total_number) { llOwnerSay("Hello, !"+ llDumpList2String(GetSitTargetLinks(),"|")); } }
  2. I'm building an object with 6 pose ball that I want to look at the root. I can change the orientation of each pose ball but if I try to apply the calculated orientation to the pose ball the llSitTarget() seem not to follow that. What I'm doing wrong ? Here is the code I put in every Link Child Prim: rotation LinkedLookAt( vector Target){ rotation rotvec = llRotBetween(<0,1,0>,llVecNorm((Target - llGetPos()))); rotation rotbet = rotvec/llGetRootRotation(); llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_ROTATION, rotbet]); return rotbet; } default { state_entry() { // Get the Root Prim orientation list ListPosLocal = llGetLinkPrimitiveParams(1, [PRIM_POS_LOCAL]); // Tag the prim to identify it llSetLinkPrimitiveParamsFast( LINK_ROOT, [PRIM_TEXT, (string)["(Root)",llList2String(ListPosLocal,1)], <1,1,1>, 1]); // Change Prim Orientation to look at the Root vector posroot = llList2Vector(ListPosLocal,0); rotation LookRoot = LinkedLookAt(posroot); // Apply this orientation on the Sit Target llSitTarget(<0.0, 0.0, 0.4>, LookRoot); } }
  3. okay so... i have nPose, and i have AVsitter (version 2 and version 1), and i have SitTargetHelper.... but all i want to do is write a SIMPLE script that takes ONE avatar sitting on ONE thing, moves it around, and can save that as a new sit target. now, i can get the seated avatar's link position and rotation no problem. and i can change those and scoot it around. and i have scripts and functions that can get an ACCURATE sit target from the avatar seated on a TOTALLY SEPARATE prim/object... but i haven't found any that can get it from the avatar actually linked TO it. and im bad at math in general, but when you start mathing vectors and rotations and quaternions and radians... OMG! as for avsitter... it apparently doesn't even use llSitTarget at all, but grabs the avatar and sticks it in position based on stored settings. (and as for npose, my eyes were so bleary from peering at avsit code, i just couldn't... :X ) does anybody know this forumula? if it's not proprietary to you, can you tell me what it is? if it IS proprietary, how much you selling it for?
  • Create New...