How to make animation affect only part of the body? (a.k.a walking during animation) -
gangsta15 - 09.09.2011
So, for example i have 2 animations PED - IDLE_Chat and PED - phone_talk. When i use them, player freezes while animation is playing. But there is the way to affect only on upper part of body with this anims - therefore player can walk/run/crouch (standart WASD movement). But I don't know exactly how to do this.
P.S. I was searching any information about 1-2 hours, but there is no result.
Later I will post movie from one server where it realized. (you can see it even in single player - when gangsters walk to you they smoke/talk/drink)
Re: How to make animation affect only part of the body? (a.k.a walking during animation) -
Kingunit - 09.09.2011
Some code?
Re: How to make animation affect only part of the body? (a.k.a walking during animation) -
=WoR=G4M3Ov3r - 09.09.2011
Show us the code.
Re: How to make animation affect only part of the body? (a.k.a walking during animation) -
gangsta15 - 09.09.2011
Problem solved.
ApplyAnimation(playerid,"PED","IDLE_chat",4.1,0, 0, 0, 1, 1);
SetTimerEx("ClearAnims", timer, 0, "d", playerid);
forward ClearAnims(playerid); //In the top of file
public ClearAnims(playerid)
{
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
ClearAnimations(playerid);
}
Added:
Before I used:
ApplyAnimation(playerid,"PED","IDLE_Chat",4.1,0,0, 0,0,2000,1);
and it was freezing player.