Tuesday, December 02, 2008
USERLOGIN PASSWORD Remember?
You are here » Learning Center ยป Forums

Openlife Forums

 Openlife Grid Forums
Minimize
 
  Openlife Forums  Scripting  Openlife LSL Ex...  Simple Pose Stand
Previous Previous
 
Next Next
New Post 8/7/2008 3:43 PM
User is offline Haplo
4 posts
Openlife Newbie


Simple Pose Stand 

This will allow you to create a simple pose stand by dropping this script into any prim - right clicking and sitting on it. Either change the name of the animation you wish to use in the script or simply renmae the one you put into the prim "at180" - Sorry this is a bit spaced out, but I figure that's better than squished and hard to read. I'll get this particular forum figured out real soon ;)

Let me know if you need any help with  this or find any bugs. Take care!

Haplo Voss

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

key user=NULL_KEY;

default
{

state_entry()
{
llSitTarget(<0,0,1.5>,ZERO_ROTATION);
llSetSitText("Stand");
}

changed(integer change)
{

if(change & CHANGED_LINK)
{
key av=llAvatarOnSitTarget();

if(av!=NULL_KEY)
{
user=av;
llRequestPermissions(av,PERMISSION_TRIGGER_ANIMATION);
}
else
{

if(user!=NULL_KEY)
{
llStopAnimation("at180");
user=NULL_KEY;
}

}

}

}
run_time_permissions(integer perm)
{

if(perm & PERMISSION_TRIGGER_ANIMATION)
{
llStopAnimation("sit");
llStartAnimation("at180");
}

}

}

// End of Script -------------------------

 

 
Previous Previous
 
Next Next
  Openlife Forums  Scripting  Openlife LSL Ex...  Simple Pose Stand
Privacy Statement | Terms Of UseAll Rights Reserved 2007,2008 3DX - Openlifegrid.com