Jump to content

setPedAnimation


Ascla

Recommended Posts

This is a really big MTA problem. In MTA when you play animation on ped / player It was always be frozen and he can't move. You can work around this but this way sucks too.. but working. This way is using binds and setControlState function.

Look at my video.

Link to comment
Possible, but it isn't easy.

https://wiki.multitheftauto.com/wiki/Se ... onProgress

https://wiki.multitheftauto.com/wiki/OnClientRender

and you have to sync it with triggers, cause onClientRender only works at client.

Nope, it's doesn't fix the problem. For example box carrying animation have nothing to do with legs and It's can be setted by animation progress but by manual setting control state you can make ped running. The problem is with setControlState function, because it's working with animations only when is used on timer (some time from the animation starts).

In SA-MP players with some animations can normally run. This is possible also in single player (for example robbing houses mission with carrying animation). In MTA you can't and I think it was MTA bug. http://bugs.mtasa.com/view.php?id=7127

Link to comment
  • Moderators

Of course there are some bugs, I tested if it did worked. But it seems it did.

But moving a ped with an animation isn't that hard, only making sure that he won't fly out of the map.

Here you got proof that you are able to set an animation in slow-motion, but also that you can move it to a direction.

This is just a sample, it can be created much better.

Pity that I only can upload films with 30 frames per sec...... It was very smooth on my screen.

Edited by Guest
Link to comment

Try your way with animation "CARRY", "crry_prtial" or something like this - maybe faces animation.

@edit

I found quick hax to enable moving with freezed animation but I can't reproduce it with code.

1. Start entering a vehicle.

2. While you are entering to vehicle play animation.

3. You can moving.

I'm tried to reproduce it with this:

setControlState("enter_exit", true) 
setPedAnimation(localPlayer, "CARRY", "crry_prtial", -1, true, true, false, false) 

But don't working. I'm tried also with timers..

Link to comment
  • 10 months later...

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