Ascla Posted July 26, 2013 Share Posted July 26, 2013 Hey all, I've a problem. I want to use setPedAnimation on a player, but when I use this function, the player is frozen. Is it possible to move during a setPedAnimation ? Thanks Link to comment
lopezloo Posted July 26, 2013 Share Posted July 26, 2013 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
Moderators IIYAMA Posted July 26, 2013 Moderators Share Posted July 26, 2013 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. Link to comment
lopezloo Posted July 26, 2013 Share Posted July 26, 2013 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 IIYAMA Posted July 27, 2013 Moderators Share Posted July 27, 2013 (edited) 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 July 28, 2013 by Guest Link to comment
lopezloo Posted July 27, 2013 Share Posted July 27, 2013 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
DiSaMe Posted July 27, 2013 Share Posted July 27, 2013 setPedAnimation(player, "block", "animation", 0, true, false, true, false) Link to comment
AugustAlonso Posted June 12, 2014 Share Posted June 12, 2014 Try it: setPedAnimation(localplayer, "CARRY", "crry_prtial", 1, true, true, false) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now