ApplyAnimation to upperbody? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ApplyAnimation to upperbody? (
/showthread.php?tid=466135)
ApplyAnimation to upperbody? -
BullseyeHawk - 26.09.2013
I have the animation 'ApplyAnimation(playerid, "PED", "IDLE_chat", 4.1, 0, 0, 0, 0, 3000, 0);'
Tried to use it while talking but it won't able the player to move at all (except head movement ofcourse.)
Is there anyway to apply animations to specifec bones / part of the body? As well as getting the current movement of that specifec bone / part of body. (Actually a good way for another system of mine < )
Thanks in advance.
Re: ApplyAnimation to upperbody? -
Voxel - 26.09.2013
I dont think its possible to get the animations from different bones, u can get the current animation that is playing i think. but u want it so the idle chat animation starts playing when you are chatting? thats pretty easy actually.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_CROUCH)) // ure gonna have to find out wich key u want to press because you can only use gta sanandreas standers keys like fire, crouch etc so i put it on crouch for now.
{
ApplyAnimation(playerid, "PED", "IDLE_chat", 4.1, 0, 0, 0, 0, 3000, 0);
}
return 1;
}
Re: ApplyAnimation to upperbody? -
BullseyeHawk - 26.09.2013
Hm. It'd be intersting if it would be possible.
Thanks anyway, I'll use the reguler one then.