ikt Posted February 27, 2016 Share Posted February 27, 2016 How do you actually stop or disable an animation? I've tried a few things, but they didn't work. This is about the reversing/looking over shoulder animations inside vehicles. The natives I tried were: ENTITY::STOP_ENTITY_ANIM AI::STOP_ANIM_TASK AI::STOP_ANIM_PLAYBACK and I pulled the arguments from the RAGEPluginHook manual. The animation group would be "[email protected]@[email protected]" and the animation itself be "reverse", right? I tried using these natives but they didn't work for me. There's also stopping tasks, but I don't think that's got to do with purely animations? Link to comment Share on other sites More sharing options...
InfamousSabre Posted February 27, 2016 Share Posted February 27, 2016 All I can think of off the top of my head is make sure the vehicle you're in uses that anim group. Link to comment Share on other sites More sharing options...
R3QQ Posted February 28, 2016 Share Posted February 28, 2016 (edited) I haven't found any simple solution. Sometimes you can overwrite with something else i.e. start another animation which will stop the previous one. Below, there's an example of a check if the animation is playing and if so it's being stopped. If it doesn't work you can try removing the second line from being a comment and try that instead. Sometimes the system keeps calling tasks and then you need to loop the stopping. You can try these as well: AI::CLEAR_PED_TASKS and AI::CLEAR_PED_SECONDARY_TASK Example: if (ENTITY::IS_ENTITY_PLAYING_ANIM(peds[i], "guard_reactions", "1hand_aim_high_sweep", 3)){AI::STOP_ANIM_TASK(peds[i], "guard_reactions", "1hand_aim_high_sweep", 3);//AI::CLEAR_PED_TASKS_IMMEDIATELY(peds[i]);}if (PED::IS_SCRIPTED_SCENARIO_PED_USING_CONDITIONAL_ANIM(peds[i], "guard_reactions", "1hand_aim_high_sweep")){AI::STOP_ANIM_TASK(peds[i], "guard_reactions", "1hand_aim_high_sweep", 3);//AI::CLEAR_PED_TASKS_IMMEDIATELY(peds[i]);} Edited February 28, 2016 by R3QQ LeeC22 and ikt 2 Link to comment Share on other sites More sharing options...
ikt Posted February 28, 2016 Author Share Posted February 28, 2016 Are "normal" anims considered tasks? I can't seem to stop those even if using all three commands. Clearing the tasks just ejects me from my vehicle. Link to comment Share on other sites More sharing options...
ikt Posted May 7, 2020 Author Share Posted May 7, 2020 AI::CLEAR_PED_SECONDARY_TASK works, thanks! LeeC22 and R3QQ 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now