J
Janina Dufaux
Guest
Hallo, hab ein AO Script hier gefunden: http://osgrid.org/forums/viewtopic.php?f=5&t=414 Nun möchte ich auch die Animationen einfügen, das geht ja scheinbar nur per UUID. Wie fügt man die denn ein?
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
default
{
touch_start(integer inum)
{
llRequestPermissions(llGetOwner(),PERMISSION_TRIGGER_ANIMATION);
}
run_time_permissions(integer perm)
{
if(perm & PERMISSION_TRIGGER_ANIMATION)
{
list anims = llGetAnimationList(llGetPermissionsKey()); // get list of animations
integer len = llGetListLength(anims);
integer i;
llSay(0, "Stopping " + (string)len + llGetSubString(" animations",0,-1 - (len == 1)));//strip the "s" when there is only 1 to stop.
for (i = 0; i < len; ++i) llStopAnimation(llList2Key(anims, i));
llSay(0, "Done");
llSetTimerEvent(0.75);
}
}
timer()
{
list anims = llGetAnimationList(llGetPermissionsKey()); // get list of animations
integer len = llGetListLength(anims);
integer i;
//llSay(0,llList2String(anims,0));
if(llList2String(anims,0) == "6ed24bd8-91aa-4b12-ccc7-c97c857ab4e0")
{
llStartAnimation("bouncy_ball_walk");
llStopAnimation("bouncy_ball_super");
}
else if(llList2String(anims,0) == "2408fe9e-df1d-1d7d-f4ff-1384fa7b350f")
{
llStartAnimation("bouncy_ball_super");
llStopAnimation("bouncy_ball_walk");
}
}
}