leihebi Posted February 18, 2021 Share Posted February 18, 2021 I don't know what the problem is anymore, when I play the animation to the player in the same way, there is no problem at all. If the object is replaced by the specified ped there is only a start action and no animation is played npc5.Task.PlayAnimation("[email protected]", "fixing_a_ped", 8f, 7000, 1f); Link to comment Share on other sites More sharing options...
LeeC22 Posted February 18, 2021 Share Posted February 18, 2021 1 hour ago, leihebi said: I don't know what the problem is anymore, when I play the animation to the player in the same way, there is no problem at all. If the object is replaced by the specified ped there is only a start action and no animation is played npc5.Task.PlayAnimation("[email protected]", "fixing_a_ped", 8f, 7000, 1f); Try this, with your own ped name of course. Setting a duration of -1 tells it to play the animation for as long as it needs. NPCPed.Task.ClearAll(); NPCPed.Task.PlayAnimation("[email protected]", "fixing_a_ped", 8f, -1, AnimationFlags.None); NPCPed.BlockPermanentEvents = true; NPCPed.AlwaysKeepTask = true; Link to comment Share on other sites More sharing options...
leihebi Posted February 18, 2021 Author Share Posted February 18, 2021 14 minutes ago, LeeC22 said: Try this, with your own ped name of course. Setting a duration of -1 tells it to play the animation for as long as it needs. NPCPed.Task.ClearAll(); NPCPed.Task.PlayAnimation("[email protected]", "fixing_a_ped", 8f, -1, AnimationFlags.None); NPCPed.BlockPermanentEvents = true; NPCPed.AlwaysKeepTask = true; thanks Link to comment Share on other sites More sharing options...
leihebi Posted February 18, 2021 Author Share Posted February 18, 2021 3 hours ago, LeeC22 said: Try this, with your own ped name of course. Setting a duration of -1 tells it to play the animation for as long as it needs. NPCPed.Task.ClearAll(); NPCPed.Task.PlayAnimation("[email protected]", "fixing_a_ped", 8f, -1, AnimationFlags.None); NPCPed.BlockPermanentEvents = true; NPCPed.AlwaysKeepTask = true; if (npc1.IsAlive) { npc1.Task.ClearAll(); npc1.Task.PlayAnimation("[email protected]", "fixing_a_ped", 8f, -1, AnimationFlags.None); npc1.BlockPermanentEvents = true; npc1.AlwaysKeepTask = true; } They don't work at all. Link to comment Share on other sites More sharing options...
LeeC22 Posted February 18, 2021 Share Posted February 18, 2021 (edited) 19 minutes ago, leihebi said: if (npc1.IsAlive) { npc1.Task.ClearAll(); npc1.Task.PlayAnimation("[email protected]", "fixing_a_ped", 8f, -1, AnimationFlags.None); npc1.BlockPermanentEvents = true; npc1.AlwaysKeepTask = true; } They don't work at all. Do you really think I don't test things before I post them? I know for a fact it works and I can show the video of it if you like. Edited February 18, 2021 by LeeC22 Link to comment Share on other sites More sharing options...
leihebi Posted February 18, 2021 Author Share Posted February 18, 2021 12 minutes ago, LeeC22 said: Do you really think I don't test things before I post them? I know for a fact it works and I can show the video of it if you like. Ok, thanks for the video. Link to comment Share on other sites More sharing options...
Garfinkle Posted February 22, 2021 Share Posted February 22, 2021 @LeeC22 Sorry to sneak on this post. Can you drop me an email? - All of the ones I have for you are down, tried to send you something today. Thanks Matt 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