Jump to content

setPedAnimation - problems, looking for workaround.


ds1-e

Recommended Posts

  • Scripting Moderators

Hello.

I am using an setPedAnimation for reload system, but i have two problems which i can't solve.

setPedAnimation(source, "rifle", "RIFLE_load", -1, false, true, false, false)

1. During animation you can't move. (looks like freeze but it isn't)

2. Your character stands up when you are crouching. (annoying)

Some servers solved it but i don't know how can i fix it on my server, that's why i'm looking for workaround and asking you guys about help.

 

Edited by majqq
Link to comment
  • 1 month later...
  • Scripting Moderators

bump.

Still looking for workaround, after crouch animation character still stands up.

if isPedDucked(source) then
	setPedAnimation(source, "rifle", "RIFLE_crouchload", 1100, false, true, true, false)
else
	setPedAnimation(source, "rifle", "RIFLE_load", 1100, false, true, true, false)
end

 

Edited by majqq
Link to comment

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...