[Opensim-dev] Linked poseball takes root prim as mouselook camera position.

R.Gunther rigun at rigutech.nl
Sat Aug 11 13:57:26 UTC 2012


It can be some script error, but if you have a linked poseball.
The mouselook camera mogves to the root prim position.
When i unlink the poseball the mouselook camera reverts back to the 
poseball and works then good.
Right now i use the following script.

---------------

key agent;
key sitter;
default
{
     state_entry()
     {
         llSetText("Sit here...",<1,1,1>,1);
         llSetAlpha(1,ALL_SIDES);
         llSitTarget(<0,0,0.1>,ZERO_ROTATION);
     }

     changed(integer n)
     {
         if(n & CHANGED_LINK)
         {
             agent=llAvatarOnSitTarget();
             if(agent!=NULL_KEY)
             {
llRequestPermissions(agent,PERMISSION_TRIGGER_ANIMATION);
             }
             else
             {
                 llSetText("Sit here...",<1,1,1>,1);
                 llSetAlpha(1,ALL_SIDES);
             }
         }
         if(n & CHANGED_INVENTORY)
         {
             agent=llAvatarOnSitTarget();
             if(agent!=NULL_KEY)
             {
                 llUnSit(agent);
             }
         }
     }
     run_time_permissions(integer n)
     {
         llStopAnimation("sit");
         llStartAnimation(llGetInventoryName(INVENTORY_ANIMATION,0));
         llSetText("",<1,1,1>,1);
         llSetAlpha(0,ALL_SIDES);
     }
}



More information about the Opensim-dev mailing list