On weapon hit play animation.
#1

Hello. I'm I wondering how can I make on weapon hit (with a 9mm for example) to apply animation on player? For example i hit a player with 9mm pistol and an animation
Код:
ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.1, 1, 1, 1, 1, 1, 1);
Reply
#2

PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart)
{
            if(
weaponid == 22// If the weapon used to damage is a 9mm. (Remove this if you want it to apply the animation if the player got hit with any weapon)
            
{
                       
ApplyAnimation(playerid"PED""WALK_DRUNK"4.1111111);
            }
            return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)