Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Ball Pose

fr0b Assia
Registered User
Join date: 6 Jun 2005
Posts: 10
07-23-2005 01:10
Can someone toss me a copy of the ball pose in game please.

TIA
Rayve Mendicant
Scripts for L$5 billion
Join date: 12 Mar 2005
Posts: 90
07-23-2005 08:03
This isn't really a building thing, but

just drag whatever animation you want into the inventory of the ball
CODE
 string animation; 
integer sit = FALSE;
key avatar;

default
{
state_entry()
{
animation = llGetInventoryName(INVENTORY_ANIMATION, 0);
sit = FALSE ;
llSetText(animation,<0,0,1>,1);
llSitTarget(<0,0,0.2>,ZERO_ROTATION);
llSetAlpha(1,ALL_SIDES);
}

changed(integer change)
{
if(change & CHANGED_LINK)
{
avatar = llAvatarOnSitTarget();
if(avatar != NULL_KEY)
{
llRequestPermissions(avatar, PERMISSION_TRIGGER_ANIMATION);
}
else
{
if((llGetPermissions() & PERMISSION_TRIGGER_ANIMATION) && !sit)
{
llStopAnimation(animation);
llResetScript();
}
}
}
}

run_time_permissions(integer perm)
{
if(perm & PERMISSION_TRIGGER_ANIMATION)
{
sit == TRUE;
llStopAnimation("sit_generic");
llStopAnimation("sit");
llStartAnimation(animation);
llSetAlpha(0,ALL_SIDES);
llSetText("",<0,0,1>,1);
}
}

on_rez(integer start_param)
{
llResetScript();
}
}


Now go learn to script!
_____________________
_______________________

Rayve Mendicant
Second Evolution

"Darwin ain't got nothin' on this"
fr0b Assia
Registered User
Join date: 6 Jun 2005
Posts: 10
07-23-2005 11:59
What I was asking for is the POSE that turns your avatar into a BALL... thus the reason I asked for a "Ball Pose" rather then a "Pose Ball".

I am working on a custom av that is very small and would like to turn my av into as small a ball as I can before I attach the avatar. This is also the reason I posted in the building section rather then the scripting section.

However, thanks for the code.. I am sure it will assist someone who does not already know how to code.
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
07-23-2005 12:23
From: fr0b Assia
What I was asking for is the POSE that turns your avatar into a BALL... thus the reason I asked for a "Ball Pose" rather then a "Pose Ball".

I am working on a custom av that is very small and would like to turn my av into as small a ball as I can before I attach the avatar. This is also the reason I posted in the building section rather then the scripting section.

However, thanks for the code.. I am sure it will assist someone who does not already know how to code.
Ball animation. :)
There are several. Do you have a particular one in mind? I can plonk a couple on you if you're not picky.
_____________________
fr0b Assia
Registered User
Join date: 6 Jun 2005
Posts: 10
07-23-2005 12:27
From: Jillian Callahan
Ball animation. :)
There are several. Do you have a particular one in mind? I can plonk a couple on you if you're not picky.


Any would work great.. my custom av is a .5m ball so if I can get my av smaller then that I would be very happy :D

Thank you very much.
Cocoanut Koala
Coco's Cottages
Join date: 7 Feb 2005
Posts: 7,903
07-24-2005 10:22
Hey! Yes, I saw your cute AV! I met you last night, at my house in the sandbox, and then the Sim went down! There was something very aesthetically pleasing abut the sight of it, sort of probing/scanning from one room to another!

coco