[HELP]: Actor Animation
#1

Hello friends I have a question , nose and put it when buying the gun the bot that is close do the animation to sell, and try
Code:
ApplyActorAnimation ( MyActor , "dealer ", " shop_pay " 4.1, 0 , 0, 0 , 0, 0 ) ;
but to put that all players make that animation and I just want you to do that is close to my
sorry for my bad English and I hope and can help me thanks
Reply
#2

What?
Reply
#3

my problem is that I want only an actor that is near my position do an animation but only the actor who is near, because I have several actors
Reply
#4

Quote:

if(IsPlayerInRangeOfPoint(playerid, x y z))
{
ApplyActorAnimation ( MyActor , "dealer ", " shop_pay " 4.1, 0 , 0, 0 , 0, 0 ) ;
}
return 1;
}

replace x,y,z with your co.
tell me if if works,cause i still dont understand what your saying if its a command u want i could do it for for
Reply
#5

ok thanks , but now the actor repeats the animation always
Reply
#6

Quote:
Originally Posted by Profeta22
View Post
ok thanks , but now the actor repeats the animation always
Hm
Quote:

ApplyActorAnimation ( MyActor , "dealer ", " shop_pay ", 4.1, 0 , 0, 0, 0 , 0, 0 );

Try This.
Reply
#7

warning 202: number of arguments does not match definition
Reply
#8

Quote:

ApplyAnimation(playerid, "DEALER","shop_pay", 4.1, 0 , 0, 0, 0 , 0, 0 );

This should work.
Reply
#9

Quote:
Originally Posted by Phar
View Post
This should work.
Applying an animation on your "playerid" would work for an actor ? Okey..

Quote:

warning 202: number of arguments does not match definition

PHP Code:
ApplyActorAnimation(youractorname"DEALER""shop_pay"4.100000); 
Copy the animations like it is, because in Pawn, the capital letters are counted as well.
Here you go a list of it : https://sampwiki.blast.hk/wiki/Animations
For more about "ApplyActorAnimation",
https://sampwiki.blast.hk/wiki/ApplyActorAnimation
Reply
#10

Quote:
Originally Posted by KillerDVX
View Post
Applying an animation on your "playerid" would work for an actor ? Okey..



PHP Code:
ApplyActorAnimation(youractorname"DEALER""shop_pay"4.100000); 
Copy the animations like it is, because in Pawn, the capital letters are counted as well.
Here you go a list of it : https://sampwiki.blast.hk/wiki/Animations
For more about "ApplyActorAnimation",
https://sampwiki.blast.hk/wiki/ApplyActorAnimation
When the actor runs the animation gives me crash
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)