Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Library: Very Basic AO (tuned for running)

Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
06-02-2008 19:00
did this a long time ago i never use it anymore and hell i thought id release it nothing to complicated uses basic agent info commands simplified and if you do something that isnt on list it will add it and smooth out your animations more you use it

(PRE H4)

CODE

default
{
state_entry()
{
llSetTimerEvent(0.25); // poll current state (there is no event for these)
}

timer()
{
string s;

s = llGetAnimation(llGetOwner());
if(s == "Running")
{
//
}
else if(s == "Standing"|s == "Walking"|s == "Jumping"|s == "PreJumping")
{
//
}
else if (llListFindList(l, ) == -1) l += ; // if it's not already in the list, add it
}
changed(integer change)
{
if(change & CHANGED_TELEPORT)
{
llResetScript();
}
}
}
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Library bump
06-04-2008 10:02
:)
_____________________
i've got nothing. ;)