Jump to content

How do i play some animations, where can i find a solid list?


xTagz

Recommended Posts

Some time ago i needed to play an somking animation. I quickly found how to play ANY animation.

But i didnt know which one is the right one.

I found the list in rph docs but it was just names in code.

 

Where is a good animation list?

Can somebody explain how to play an animation, what argument do, how long will it play etc.

by xTagz_

Link to comment
Share on other sites

On 1/5/2024 at 9:10 PM, xTagz said:

Where is a good animation list?

I only know this one
https://docs.ragepluginhook.net/html/62951c37-a440-478c-b389-c471230ddfc5.htm#amb@code_human_cower@female@enterSection

 

On 1/5/2024 at 9:10 PM, xTagz said:

explain how to play an animation

This will fetch the nearest Ped and make it strike a pose looping, if D3 is pressed
if (Game.IsKeyDown(System.Windows.Forms.Keys.D3))
{
  Ped[] pGrp = Game.LocalPlayer.Character.GetNearbyPeds(1);
  if (pGrp[0])
  {
      Ped dancer = pGrp[0];
      dancer.BlockPermanentEvents = true;
      dancer.Tasks.PlayAnimation(
      "amb@world_human_prostitute@hooker@idle_a",
      "idle_a",
      -1f,
      AnimationFlags.Loop);
      dancer.KeepTasks = true;
  }

Analysis:
From the list i linked we have

amb@world_human_prostitute@hooker@idle_a

idle_a

idle_b

idle_c

idle_d
So in Default GTAV there is a folder named

amb@world_human_prostitute@hooker@idle_a
Inside that folder there are 4 animations
idle_a.._d

-1 is timeout == never

AnimationFlags.Loop

is one of several flags-See them via Intellisence

There are overloads for starting and stopping animation, blendin , blendout in msecd
Also see Intellisence for these

 

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...