Top Free Scripts
Script ID : 27
Audience : Default
Version 1.00.02
Published Date: 2009/5/28 4:24:30
Reads : 8868
Animation

Posing Stands help you adjust your worn attachments. Use this in your shop's stands!

//Where user sits in relation to object. ( <X,Y,Z> )
vector offset=<0.0,0.0,1.0>;


string anim;
key avatar;
 
default
{
    
state_entry() 
    {
        
llSitTarget(offset,ZERO_ROTATION);
        
anim "turn_180";
        
llSetSitText("Pose");
    }
 
    
changed(integer change
    {
        if(
change CHANGED_LINK
        {
            
avatar llAvatarOnSitTarget();
            if(
avatar != NULL_KEY)
            {
                
//SAT DOWN
                
llRequestPermissions(avatar,PERMISSION_TRIGGER_ANIMATION);
                return;
            }
            else
            {
                
//STOOD UP
                
if (llGetPermissionsKey() != NULL_KEY)
                {
                    
llStopAnimation(anim);
                }
                return;
            }
        }
        if(
change CHANGED_INVENTORY)
        {
            
llResetScript(); 
        }
        if(
change CHANGED_OWNER)
        {
            
llResetScript();
        }
    }
 
    
run_time_permissions(integer perm)
    {
        if(
perm PERMISSION_TRIGGER_ANIMATION)
        {
            
llStopAnimation("sit");
            
llStartAnimation(anim);
        }
    }
}

0
|  Links 
Printer Friendly Page Send this Script to a Friend
Search for Help
New Product
Free Item
Sponsor

Site Info
Total Hits