Nevitro Posted May 11, 2013 Share Posted May 11, 2013 Hi. I just want test something and i do not have idea... Someone allready made blend between two animations? Also, Niko just stand up after all animations [bones go to default position]. Soo, mayby someone know how to change it and set "default" position to animations bone? There are native calls: extern void BLEND_OUT_CHAR_MOVE_ANIMS(Ped ped);extern void BLEND_FROM_NM_WITH_ANIM(Ped ped, char *AnimName0, char *AnimName1, int, float x, float y, float z);extern boolean CHECK_NM_FEEDBACK(Ped ped, int id, boolean);extern void GET_CHAR_ANIM_BLEND_AMOUNT(Ped ped, char *AnimName0, char *AnimName1, float *amount);extern void SET_CHAR_ANIM_BLEND_OUT_DELTA(Ped ped, char *AnimName0, char *AnimName1, float delta); Exactly: extern void SET_CHAR_ANIM_BLEND_OUT_DELTA(Ped ped, char *AnimName0, char *AnimName1, float delta); What is delta? Before this should be: extern void REQUEST_ANIMS(char *animName);? Please... someone know? Link to comment Share on other sites More sharing options...
julionib Posted May 12, 2013 Share Posted May 12, 2013 well, i dont know if is this what you want, but you can use the default play animation method and use this native: Native.Function.Call("TASK_PLAY_ANIM_SECONDARY_UPPER_BODY", player.character, animName, animSet, 8.0, 0, 0, 0, 0, 0) 8.0 is speed, the others i have no idea ^^ this way you can play an anim with upper body and keep walking for example Link to comment Share on other sites More sharing options...
Nevitro Posted May 12, 2013 Author Share Posted May 12, 2013 I mean a nice slowly change animations. I know game just set bone from last position to next animation first frame position... But it is very fast. How to change it? How to change how fast niko change his bones position between animations? And Your code i trying, not works always... I prefer AnimationFlags Link to comment Share on other sites More sharing options...
julionib Posted May 13, 2013 Share Posted May 13, 2013 yep, it fail sometimes because its task i guess, and in bike some animations dont look right Link to comment Share on other sites More sharing options...
Nevitro Posted May 13, 2013 Author Share Posted May 13, 2013 Okey, but dear Julio, what is this "Delta"? And how to make smoothly blend between two animations? Can do this? Link to comment Share on other sites More sharing options...
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