MiloZoe Posted October 24, 2019 Author Posted October 24, 2019 (edited) @Xabi It still doesn't work NAPI.Player.PlayPlayerAnimation(player, (int)GameHelper.animationFlags.Loop, "amb@world_human_stand_fishing@idle_a", "idle_c"); NAPI.Player.PlayPlayerAnimation(player, (int)GameHelper.animationFlags.AllowPlayerControl, "amb@world_human_stand_fishing@idle_a", "idle_c"); Edited October 24, 2019 by MiloZoe
Xabi Posted October 24, 2019 Posted October 24, 2019 You have to use the flags chained with a binary or, like this: (int)(GameHelper.animationFlags.Loop | GameHelper.animationFlags.AllowPlayerControl)
MiloZoe Posted October 25, 2019 Author Posted October 25, 2019 @Xabi OK, I will give it a try. Thank you Xabi
MiloZoe Posted October 25, 2019 Author Posted October 25, 2019 (edited) @Xabi it is useful,Thx!!! Edited October 25, 2019 by MiloZoe
peshke Posted April 20, 2021 Posted April 20, 2021 On 10/24/2019 at 11:28 AM, Xabi said: You have to use the flags chained with a binary or, like this: (int)(GameHelper.animationFlags.Loop | GameHelper.animationFlags.AllowPlayerControl) Do you know how I would stop an animation after the animation playing once? Mine keeps looping I have tried every flag commbination. Do I have to set NAPI.Player.StopPlayerAnimation(player); ?
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