Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

-=Simple Pose Ball Script=-

Shippou Oud
The Fox Within
Join date: 11 Jul 2005
Posts: 141
05-13-2007 23:27
I was looking through the most common pose ball scripts out there, and noticed they all had one thing in common...all of them were needlesly complicated, and a lot of them had errors.
With the help of a friend, we came up with this script. You can modify it to hide the llSetText later if you like.
All you have to do, is create an small sphere, put the script and the animation in it. Ajust the llSitTarget so the height and everything is good, and there you go.
*Hint* to use this on furnature, put the script and the animation in the linked part of the furnature you want the AV to sit or lay on...there is no need to create a pose ball.
CODE

default
{
state_entry()
{
llSitTarget(<0,0,.6>, ZERO_ROTATION);
llSetText("Sit Here",<1,1,1>,1);
}

changed(integer change)
{
if (change & CHANGED_LINK)
{

if (llAvatarOnSitTarget() != NULL_KEY)
{
llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION);
}
}
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TRIGGER_ANIMATION)
{
llStopAnimation("sit");
string animation=llGetInventoryName(INVENTORY_ANIMATION,0 );
llStartAnimation(animation);
}
}
}
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Discussion Thread
05-18-2007 06:53
/54/6d/184730/1.html
_____________________
i've got nothing. ;)
Gigi Kidd
Registered User
Join date: 28 May 2007
Posts: 0
Awesome!
06-07-2007 10:08
Thank you, Shippou! This script is exactly what I was looking for, and very easy to use.
Zaria Bellman
Registered User
Join date: 14 Oct 2006
Posts: 4
05-15-2008 14:26
Hi the above script is great and it works well. My only problem with it is that the ball doesn't disappear or become transparent once you "sit" on it. How would I solve this?

BTW I am extremely new to scripting
Zaria Bellman
Registered User
Join date: 14 Oct 2006
Posts: 4
05-15-2008 14:27
Hi the above script is great and it works well. My only problem with it is that the ball doesn't disappear or become transparent once you "sit" on it. How would I solve this?

BTW I am extremely new to scripting

The text also does not disappear