marcin1995 Sharple Posted April 14, 2020 Share Posted April 14, 2020 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 More sharing options...
KT Kingsley Posted April 14, 2020 Share Posted April 14, 2020 I think the function you want is llGetAnimation (http://wiki.secondlife.com/wiki/LlGetAnimation) which actually returns the animation state of an avatar rather than a specific animation. 2 Link to comment Share on other sites More sharing options...
marcin1995 Sharple Posted April 14, 2020 Author Share Posted April 14, 2020 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 More sharing options...
marcin1995 Sharple Posted April 14, 2020 Author Share Posted April 14, 2020 7 minutes ago, KT Kingsley said: I think the function you want is llGetAnimation (http://wiki.secondlife.com/wiki/LlGetAnimation) which actually returns the animation state of an avatar rather than a specific animation. Alright yes this is exactly what i needed! Thank you very much and have a nice day Link to comment Share on other sites More sharing options...
marcin1995 Sharple Posted April 14, 2020 Author Share Posted April 14, 2020 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? Link to comment Share on other sites More sharing options...
Wulfie Reanimator Posted April 14, 2020 Share Posted April 14, 2020 (edited) 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 April 14, 2020 by Wulfie Reanimator 1 Link to comment Share on other sites More sharing options...
marcin1995 Sharple Posted April 14, 2020 Author Share Posted April 14, 2020 Thank you so much haha Link to comment Share on other sites More sharing options...
Recommended Posts
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