Jump to content

Unusual AO Script


marcin1995 Sharple
 Share

You are about to reply to a thread that has been inactive for 1472 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hello there!

Is it possible to make something like an AO script, that sets the Alpha of a prim instead of overriding the animations?

llGetAgentInfo doesnt help me in what i planned to do and looking at all those AO scripts i am pretty clueless how to link an event like standing, walking, crouch walking, groundsit and so on to llSetAlpha commands.

llGetAgentInfo doesnt help me since AGENT_WALKING refers to walking, running and crouchwalking but i need to seperate those events!

I am clueless 😛

 

Link to comment
Share on other sites

Also i found this: its a walker, that plays soundfiles related to the current status (walking standing turning left turning right and so on).

I tried to get behind this but i have no idea how it adresses the soundfiles. I just assume that the script plays the soundfiles because they have the same name as the animations so the script basically thinks that it plays the anims.

here it is:

string Previous;

integer IsRepeatable(string anim)
{
         if(anim == "Standing")          return FALSE;
    else if(anim == "Sitting")           return FALSE;
    else if(anim == "Sitting on Ground") return FALSE;
    else if(anim == "Crouching")         return FALSE;
    else if(anim == "Hovering")          return FALSE;
    else if(anim == "Landing")           return FALSE;
    else if(anim == "Standing Up")       return FALSE;
    else return TRUE;
}

default
{
    on_rez(integer start)
    {
        Previous = ""; // Make it say what you're doing when you equip, so people get the idea of what it does.
    }
    
    state_entry()
    {
        llSetTimerEvent(0.05);
    }

    timer()
    {
        string anim = llGetAnimation(llGetOwner());
        if(anim != Previous && llGetTime() > 0.6 || (IsRepeatable(anim) && llGetTime() > 2.0))
        {
            if(anim != "FlyingSlow" /* Screw this slot in particular */)
            {
                llResetTime();
                llPlaySound(anim, 1);
                Previous = anim;
            }
        }
    }
}

Link to comment
Share on other sites

3 minutes ago, marcin1995 Sharple said:

Okay so far it works. I just wonder if i could use more than one animation at the same time

for example if i take

newAnimation == "Hovering" and i want to combine the same action for hovering up and hovering down, how do i do that?

newAnimation == "Hovering Up" || newAnimation == "Hovering Down"

See: http://wiki.secondlife.com/wiki/LSL_Operators

Edited by Wulfie Reanimator
  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1472 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...