Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Need help adjusting poseball script

Zaria Bellman
Registered User
Join date: 14 Oct 2006
Posts: 4
05-15-2008 15:01
Hi I am new to scripting and I need to adjust a poseball script that works well only it the ball doesn't become transparent when you "sit" on it nor does the text.

I know that is is probably easy to do..... can anyone help?

Here is the script:

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);
}
}
}
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
05-15-2008 15:49
There a a bajillion poseball script freebies, check the lsl library on the official site, or the library forum here, or possibly sources of freebies in world. You'll find every variant under the sun.

But the jist of what you want to do is something like this (IMHO):

[useless tag because these forums suck]
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)
{
llSetAlpha(0.0,ALL_SIDES);
llSetText("",<1,1,1>,1);
llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION);
}
else
{
llSetAlpha(1.0,ALL_SIDES);
llSetText("Sit Here",<1,1,1>,1);
}
}
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TRIGGER_ANIMATION)
{
llStopAnimation("sit";);
string animation=llGetInventoryName(INVENTORY_ANIMATION,0 );
llStartAnimation(animation);
}
}
}
[/useless tag because these forums suck]


From: Zaria Bellman
Hi I am new to scripting and I need to adjust a poseball script that works well only it the ball doesn't become transparent when you "sit" on it nor does the text.

I know that is is probably easy to do..... can anyone help?

Here is the script:

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);
}
}
}
Dylan Rickenbacker
Animator
Join date: 11 Oct 2006
Posts: 365
05-16-2008 00:38
From: Shadow Subagja

[useless tag because these forums suck]
... code stuff ...
[/useless tag because these forums suck]



LOL! But Shadow, there's a workaround, lookee here:

/15/d0/222988/1.html

So while your useless tag got a good laugh out of me, it might have been nice to have an easier time reading your post.