Jump to content

Search the Community

Showing results for tags 'sittarget'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • People Forum
    • Your Avatar
    • Make Friends
    • Lifestyles and Relationships
    • Role Play
    • General Discussion Forum
    • Forums Feedback
    • Missed Connections
    • Second Life Education
  • Places and Events Forum
    • Favorite Destinations
    • Upcoming Events and Activities
    • Games in Second Life
  • Official Contests & Events
    • Leap Into Love Snapshot Contest
  • Creation Forum
    • Fashion
    • Art, Music and Photography
    • Animation Forum
    • Bakes on Mesh
    • Environmental Enhancement Project
    • Machinima Forum
    • Building and Texturing Forum
    • Mesh
    • LSL Scripting
    • LSL Library
    • Experience Tools Forum
    • Sansar for Second Life Residents
  • Technology Forum
    • Second Life Server
    • Second Life Viewer
    • Second Life Web
    • General Second Life Tech Discussion
  • Commerce Forum
    • Merchants
    • Inworld Employment
    • Wanted
  • Land Forum
    • General Discussion
    • Mainland
    • Linden Homes
    • Regions for Sale: Full Private Island
    • Region for Rent: Full Private Island
    • Regions for Sale: Homesteads
    • Region Rentals: Homestead
    • Parcels for Sale: Mainland
    • Parcels for Rent: Mainland
    • Wanted: Full Private Island
    • Wanted: Homesteads
    • Wanted: Mainland
  • 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
    • Форум по-русски
  • Adult Content Forum
    • Highlight Upcoming Events
    • General Discussion
    • General Announcements
  • Answers
    • Abuse and Griefing
    • Account
    • Avatar
    • Creation
    • Inventory
    • Getting Started
    • Controls
    • Land
    • Linden Dollars (L$)
    • Shopping
    • Technical
    • Viewers
    • Everything Else
    • International Answers

Blogs

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

Categories

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

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 1 result

  1. i hope when AVsitter is released i can just play with that, untill then - rez 2 boxes, link em and put this script in the child. if i sit on the child and click that box, it moves my avatar, ... and is supposed to renew the sitTarget, but when i stand and sit back down, the sit target is way off? tried everything i can think of thanx for any advice, X vector sitPos; vector sitRot; integer avLink; string anim ; list local; vector mypos; rotation myrot; rotation R_avRot; rotation V2Rrot; updateSitTrg(integer link,vector avPos, vector avRot) { key user = llAvatarOnLinkSitTarget(LINK_THIS); vector size = llGetAgentSize(user); R_avRot = llEuler2Rot(avRot * DEG_TO_RAD ); if(size) { local = llGetLinkPrimitiveParams(link, [PRIM_POS_LOCAL, PRIM_ROT_LOCAL]); ; mypos = llList2Vector(local,0); myrot = llList2Rot(local,1); mypos += avPos; myrot *= R_avRot; mypos.z -= ( (size.z/2) - 0.375 ); // height adjust? llSetLinkPrimitiveParamsFast(link, [PRIM_POS_LOCAL, mypos , PRIM_ROT_LOCAL, myrot ]); llOwnerSay("\n Sit Target after: \nPosition - " + (string)mypos + "\nRotation - " + (string)myrot); llLinkSitTarget(LINK_THIS,mypos * myrot , myrot); } } default { state_entry() { sitPos = <0.0, 0.0, 0.5>; sitRot = <0.0, 0.0, 0.0>; V2Rrot = llEuler2Rot(sitRot * DEG_TO_RAD ); llLinkSitTarget(LINK_THIS,sitPos, V2Rrot); } touch_start(integer total_number) { llOwnerSay("\n Sit Target before: \nPosition - " + (string)mypos + "\nRotation - " + (string)myrot); // sitPos += <0.05, 0.0, 0.0>; sitRot += <0.0, 0.0, 10.0>; updateSitTrg(avLink,sitPos,sitRot); } changed(integer change) { if (llAvatarOnSitTarget() != NULL_KEY) { llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION); llSetClickAction(CLICK_ACTION_TOUCH); avLink = llGetNumberOfPrims(); } else { llSetClickAction(CLICK_ACTION_SIT); avLink = 0; } } run_time_permissions(integer perm) { anim = llGetInventoryName(INVENTORY_ANIMATION, 0); if (anim != "") { llStopAnimation("sit"); llStartAnimation(anim); } } }
×
×
  • Create New...