Log in to reply

In what kind of way do I set up TASK_PLAY_ANIM For it to function C#

  • I don't know how to set up the task play animation for the player

    In what way do I have to set this up for it to function

  • @Da-Wei-Wang-Shen First REQUEST_ANIM_DICT. Then TASK_PLAY_ANIM.

    Function.Call(Hash.REQUEST_ANIM_DICT, "amb@medic@standing@kneel@base");
    while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "amb@medic@standing@kneel@base"))

            Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "amb@medic@standing@kneel@base", "base", 8.0f, 1.0f, 1000, 33, .1f, 0, 0, 0);

  • Or to make it easier you can use

     Game.Player.Character.Tasks.PlayAnimation("anim_dict", "anim_name");

  • @Jitnaught Thats better less code. But does it request the animation first. When looking at the source it looks like it does not for some overloads for PlayAnimation.

  • @aimless All of the overloads call the one central function, which requests the animation and plays the animation.

Log in to reply

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.