Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Discussion: -=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
Original Thread
05-18-2007 06:53
/15/a0/183792/1.html
_____________________
i've got nothing. ;)
Spinster Goodnight
Registered User
Join date: 24 Aug 2006
Posts: 15
10-20-2007 23:02
I keep getting the same error message, Syntax error 29,0

Considering that what's there is:

}
}
[/code]

I'm not sure what the error is.....
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
10-21-2007 05:52
From: Spinster Goodnight
I keep getting the same error message, Syntax error 29,0

Considering that what's there is:

}
}


I'm not sure what the error is.....
[/code]
Welcome to the Scripting forum Spinster.

The script runs just fine. You have run into another problem.

These 2 commands inside brackets;
CODE
 & 
are for bbcode which is disabled right now in the forum. If it was working then you would never see them and the code would be in a window and properly indented. select and copy everything between those brackets and then paste it into your script and it should work for you.

Try copying just this:

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);
}
}
}
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum