Animation ID of taking out an item?
#1

I really can't remember if this was GTA V or GTA SA, but what's the ped animation that happens when you withdraw a weapon in the single player?
Reply
#2

I use the block animation, I find it the closest:
PHP код:
ApplyAnimation(playerid"PED""FIGHTA_BLOCK"4.100004801); 
One thing tho! If the animation was applied while the player is running, they won't be able to stop until the animation is finished, it can be really bad in situations where you might fall from high places.
Reply
#3

WEAPONS(idk if any of these will help you tho)

SHP_1H_Lift
SHP_1H_Lift_End
SHP_1H_Ret
SHP_1H_Ret_S
SHP_2H_Lift
SHP_2H_Lift_End
SHP_2H_Ret
SHP_2H_Ret_S
SHP_Ar_Lift
SHP_Ar_Lift_End
SHP_Ar_Ret
SHP_Ar_Ret_S
SHP_G_Lift_In
SHP_G_Lift_Out
SHP_Tray_In
SHP_Tray_Out
SHP_Tray_Pose
Reply
#4

Quote:
Originally Posted by Eoussama
Посмотреть сообщение
I use the block animation, I find it the closest:
PHP код:
ApplyAnimation(playerid"PED""FIGHTA_BLOCK"4.100004801); 
One thing tho! If the animation was applied while the player is running, they won't be able to stop until the animation is finished, it can be really bad in situations where you might fall from high places.
Hm, gonna try getting the sprint status by their velocity and then apply the animation? I.e:
PHP код:
new Float:xFloat:yFloat:zFloat:units;
GetPlayerVelocity(playeridxyz);
if(
floatsqroot(floatabs(floatpower(z2.0))) < 0.1552086)
 
//apply anim 
Note that I might have calculated horribly wrong.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)