Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Unsit problems

Squall DuCasse
Registered User
Join date: 30 Jan 2007
Posts: 1
07-31-2007 18:13
I'm fairly new to scripting, and i cant seem to make a pose ball that does the animation and unsits the av right. Does anybody have any tips or a script i can have?
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
07-31-2007 21:17
If you could post an example of the current code you're working with we could help you a lot more easily.

Try something like the following

if(change & CHANGED_LINK)
{
kuser = llAvatarOnSitTarget();

if(kuser != NULL_KEY)
{
llRequestPermissions(kuser, PERMISSION_TRIGGER_ANIMATION);
llSetAlpha(0.0, ALL_SIDES);
llSetText(" ", COLOR, 1.0);
llStopAnimation("Sit";);
}
else
{
llStopAnimation(anim);
if(ishidden != TRUE)
{
llSetAlpha(1.0, ALL_SIDES);
llSetText(ftext, COLOR, 1.0);
}
}
}

run_time_permissions(integer perm)
{
if(perm) llStartAnimation(anim);
}

That's a direct copy/paste from my poseball script (obviously missing other parts and the default { } state, etc...) so I know it works. Good luck.
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.