How to make animation affect only part of the body? (a.k.a walking during animation)
#1

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)
Reply
#2

Some code?
Reply
#3

Show us the code.
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)