Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

~Pose Ball Script Problems~

Shippou Oud
The Fox Within
Join date: 11 Jul 2005
Posts: 141
05-12-2007 11:55
I keep getting the "not a sutable palce to sit" error. When I actually manage to set on it, I get this
From: someone

PERMISSION_TRIGGER_ANIMATION permission not set
Object: Unable to find specified agent to request permissions.
Object: Script trying to trigger animations but PERMISSION_TRIGGER_ANIMATION permission not set


Here is the script;
From: someone

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


changed (integer x)
{
llRequestPermissions(llAvatarOnSitTarget(),PERMISSION_TRIGGER_ANIMATION);
llStartAnimation("camp sit"";);
}


}
Nardok Corrimal
Registered User
Join date: 23 Jun 2006
Posts: 6
05-12-2007 12:19
you also need to feed it through the run_time_permissions event

something like this:


string animation;
{
state_entry()
{
llSitTarget(<-0.03495, 0.07935, 0.40020>, <0.06163, -0.06166, 0.70441, 0.70442>;);//this is an arbitrary example
}

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";);
animation=llGetInventoryName(INVENTORY_ANIMATION,0);
llStartAnimation(animation);
}
}
}
Shippou Oud
The Fox Within
Join date: 11 Jul 2005
Posts: 141
05-12-2007 12:25
Working now.. Thanks a lot
Harleen Gretzky
Registered User
Join date: 27 Oct 2005
Posts: 51
05-12-2007 12:26
Your sit target is zero.
CODE

default
{
state_entry()
{
llSetText("Sit Here", <1,1,1>,1);
llSitTarget(<0,-0.50,-0.625>,ZERO_ROTATION);
}


changed (integer x)
{
if (x & CHANGED_LINK)
{
if (llAvatarOnSitTarget() != NULL_KEY)
{
llRequestPermissions(llAvatarOnSitTarget(),PERMISSION_TRIGGER_ANIMATION);
llStartAnimation("camp sit");
}
}
}
Nardok Corrimal
Registered User
Join date: 23 Jun 2006
Posts: 6
05-12-2007 12:31
And make sure that you dont use <0,0,0> for the sit target or it will interfere with llAvatarOnSitTarget()

=)