Posted February 8, 20205 yr I would like to slow down certain animations but cant get this native to work: SET_ANIM_RATE Has anyone tinkered with it yet and knows how to use it?
February 8, 20205 yr Usually you can specify the speed already when starting the animation. I am not sure what this native actually changes, perhaps just the ped's running anim?
February 8, 20205 yr Author I thought I could set the animation rate in general with this method (make the NPC move slower or faster).
February 9, 20205 yr I am not sure what it changes, but I don't think you can. What are you seeing when yo set it to like 0.1f?
February 10, 20205 yr Author Nothing changes. I tried to fill it with (ENTITY, 0.1f, 0, 1) and (ENTITY, 0.1f, 0, 0), but maybe I have to insert the hash of an animation (which I dont have)?
February 10, 20205 yr It does not look like it takes a hash. Those are few examples from the game scripts: Line 11070: TASK::SET_ANIM_RATE(iLocal_38, 0.75f, 0, false); Line 11071: TASK::SET_ANIM_RATE(iLocal_39, 0.75f, 0, false); Line 11080: TASK::SET_ANIM_RATE(iLocal_38, 0.5f, 0, false); Line 11081: TASK::SET_ANIM_RATE(iLocal_39, 0.5f, 0, false); Line 1459: TASK::SET_ANIM_RATE(iLocal_1284, 1f, 0, false); Line 1463: TASK::SET_ANIM_RATE(iLocal_1285, 1f, 0, false); Line 17862: TASK::SET_ANIM_RATE(iLocal_1284, 0f, 0, false); Line 17863: TASK::SET_ANIM_RATE(iLocal_1285, 0f, 0, false);
February 11, 20205 yr Author Ah, so you can slow down or speed up a certain task, I guess. Thanks for the insight!
February 11, 20205 yr Perhaps it only works for animations played via the task natives? Might be worth a shot.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.