Dive animation?
#1

Which anim is the one who dives underwater? I mean when you press Left Click and dive, which animation is it? And how to check if an animation is being used by a player? I mean the Dive animation, how to check if a Player dives?
Reply
#2

I don't know which anim it is but u can check anim with it:
if(GetPlayerAnimationIndex(playerid))
Reply
#3

Can you show me an example?
Reply
#4

Just make it this way:
Код:
ApplyAnimation(playerid,"SWIM","SWIM_crawl",6.1,1,1,1,1,0,1);
Reply
#5

SWIM

Swim_Breast
SWIM_crawl
Swim_Dive_Under
Swim_Glide
Swim_jumpout
Swim_Tread
Swim_Under

Maybe this?
Reply
#6

If swim dive under is anim then use it to check
if(GetPlayerAnimationIndex(playerid))
{
new animlib[32];
new animname[32];

GetAnimationName(GetPlayerAnimationIndex(playerid) ,animlib,32,animname,32);
if(!strcmp(animname, "swim dive under", true)){
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)