Jump to content

C# PlayPlayerAnimation is out of sync


Recommended Posts

Posted (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 by MiloZoe
Posted

You have to use the flags chained with a binary or, like this:

(int)(GameHelper.animationFlags.Loop | GameHelper.animationFlags.AllowPlayerControl)
  • 1 year later...
Posted
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);

  ?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...