SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 09/09/2011, 04:09 PM   #1
gangsta15
Big Clucker
 
Join Date: May 2009
Posts: 57
Reputation: 4
Default How to make animation affect only part of the body? (a.k.a walking during animation)

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)
gangsta15 is offline   Reply With Quote
Old 09/09/2011, 04:36 PM   #2
Kingunit
High-roller
 
Kingunit's Avatar
 
Join Date: Dec 2010
Location: The Netherlands
Posts: 1,426
Reputation: 120
Default Re: How to make animation affect only part of the body? (a.k.a walking during animation)

Some code?
__________________
Kingunit is offline   Reply With Quote
Old 09/09/2011, 04:37 PM   #3
=WoR=G4M3Ov3r
High-roller
 
Join Date: Nov 2010
Location: www.Ambrosia-Servers.com
Posts: 1,751
Reputation: 329
Default Re: How to make animation affect only part of the body? (a.k.a walking during animation)

Show us the code.
=WoR=G4M3Ov3r is offline   Reply With Quote
Old 09/09/2011, 04:38 PM   #4
gangsta15
Big Clucker
 
Join Date: May 2009
Posts: 57
Reputation: 4
Default Re: How to make animation affect only part of the body? (a.k.a walking during animation)

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.
gangsta15 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make animation without hands getting stucked to the body KfirRP Help Archive 5 19/08/2011 12:41 PM
Walking in animation Infamous Help Archive 5 26/03/2011 11:57 AM
Animation and walking GiS Help Archive 4 16/03/2011 05:45 PM
animation for when a player is walking/joging? The_Gangstas Help Archive 4 07/12/2010 08:39 PM
Car doors locked animation (Need help to apply animation) yugokoral Help Archive 0 20/09/2009 06:00 PM


All times are GMT. The time now is 12:28 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.