Lergen

Walking Style Speed?

Recommended Posts

I looked around a bit, but couldn't find an answer for this. When using https://wiki.multitheftauto.com/wiki/SetPedWalkingStyle is there any way to change the speed a player sprints at while using it? A sprinting ped animation is probably slower than CJ's walking speed. So in other words, when someone is using a ped walking style, is it possible to let them sprint as fast as CJ? I'd greatly appreciate any help.

Share this post


Link to post

Have you tried to use 'setGameSpeed' in client side once you give a walking style to a player? That'd change the speed of a certain player but not for everyone.

  • Thanks 1

Share this post


Link to post
Posted (edited)

Thanks! This probably sounds dumb but how would you check that a player selected an animation on the client if it's handled server-side? I'm guessing getPedAnimation would be used.

Edited by Lergen

Share this post


Link to post

You're welcome! Yes. You may use 

getPedAnimation

 

  • Thanks 1

Share this post


Link to post

Note that setting game speed affects everything around them and not just walking, as well as worsening sync (everything around them will appear badly synced, and others will see that player as moving around badly synced)

This is a reason why I personally would never touch setGameSpeed. It's not really a feature designed for multiplayer

SetPedAnimationSpeed also cannot be used, because it doesn't support active walking styles (the player movement anim group and ID instead of a static anim) and also would only support slow-downs (speed 0.0 - 1.0).

You will have to use custom animations; find (or create) IFP walking style that has a speed you desire.

@Lergen

  • Thanks 1

Share this post


Link to post

Ahhh, that's unfortunate then. I appreciate the heads-up though, thanks!

Share this post


Link to post
1 hour ago, Lergen said:

Ahhh, that's unfortunate then. I appreciate the heads-up though, thanks!

No problem.

There's plenty of modded walking style anims to be found on GTA modding sites, also if you want to get help creating one yourself or changing the speed of existing ones then i advise you to join the MTA discord (http://mtasa.com/discord) and ask in #modelling

Share this post


Link to post

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.