Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
AO AO_to_override_all_animations  

AO_to_override_all_animations

From the Second Life wiki - http://wiki.secondlife.com/wiki/LlGetAnimationList, Copyright © 2007-2009 Linden Research, Inc. and licensed under the Creative Commons Attribution-Share Alike 3.0 License at http://creativecommons.org/licenses/by-sa/3.0

Category: AO
By : Ferd Frederix
Created: 2011-05-08 Edited: 2011-05-08
Worlds: Second Life

the Zip file

Download all files for AO_to_override_all_animations
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. AO_to_override_all_animations_1.lsl

This script by Ferd Frederix may be used in any manner, modified, and republished.  Unless specified otherwise, my scripts are always free and open source.  Objects made with these scripts may be sold with no restrictions.  All I ask is that you point others to this location should they ask you about it and to not sell this script, unless it is for $0 L. Please help improve my work by reporting bugs and improvements.

1 //Simple Animation Override for Walk
2 key old_anim = "6ed24bd8-91aa-4b12-ccc7-c97c857ab4e0";
3 string new_anim="yoga_float";
4 integer status;
5 list check;
6 key owner;
7
8 default
9 {
11 {
12 owner = llGetOwner();
14 check = [old_anim];
15 }
16
18 {
20 {
21 llSetTimerEvent(0.2);
22 }
23 }
24
25 timer()
26 {
27 if(llGetAgentInfo(owner) & AGENT_WALKING)
28 {
29 list anims = llGetAnimationList(owner);
30 if(~llListFindList(anims, check))
31 {
32 status = 1;
33 llStartAnimation(new_anim);
34 llStopAnimation(old_anim);
35 }
36 }
37 else if(status)
38 {
39 llStopAnimation(new_anim);
40 status = 0;
41 }
42 }
43
45 {
47 }
48 }

Back to the Best Free Tools in Second Life and OpenSim.