Animations Help -
AroseKhanNiazi - 22.03.2014
well i want to know why some time it does not shows animations and can you tell me id of ground kick
Re: Animations Help -
MP2 - 23.03.2014
The first time an animation library is used, it won't work. You have to 'pre-load' the animation library by playing an animation from the library first, under OnPlayerConnect generally.
pawn Код:
ApplyAnimation(playerid, "ANIMLIB", "null", 0.0, 0, 0, 0, 0, 0);
This won't play an actual animation (because the animation name is 'null'), but it will pre-load the library so animations from said library can be used in the future.
'Ground kick' is not very descriptive. Do you mean the 'stomping' animation that is played when a player stomps on a dead player?
pawn Код:
ApplyAnimation(playerid, "PED", "FightA_G",4.1,0,1,1,0,0);
Re: Animations Help -
AroseKhanNiazi - 23.03.2014
nah i mean it works some time and sometime it don't
Re: Animations Help -
MP2 - 23.03.2014
Show the code please.
Re: Animations Help -
AroseKhanNiazi - 23.03.2014
ApplyAnimation(playerid,"DILDO","DILDO_G",4.0,0,0, 0,0,0);
Re: Animations Help -
Lloyde - 23.03.2014
pawn Код:
ApplyAnimation(playerid, "ANIMLIB", "null", 0.0, 0, 0, 0, 0, 0);
Re: Animations Help -
AroseKhanNiazi - 23.03.2014
Quote:
Originally Posted by Lloyde
pawn Код:
ApplyAnimation(playerid, "ANIMLIB", "null", 0.0, 0, 0, 0, 0, 0);
|
what is it
Re: Animations Help -
MP2 - 23.03.2014
Quote:
Originally Posted by AroseKhanNaizi
what is it
|
Read my post. I explained this.
Re: Animations Help -
AroseKhanNiazi - 23.03.2014
Quote:
Originally Posted by MP2
Read my post. I explained this.
|
Код:
stock PreloadAnimLib(playerid,animlib[])//None
{
ApplyAnimation(playerid,animlib,"null",0,0,0,0,0,1);
return 1;
}
see i got this
and on player spwan
Код:
PreloadAnimLib(playerid,"BOMBER");
PreloadAnimLib(playerid,"RAPPING");
PreloadAnimLib(playerid,"SHOP");
PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"SMOKING");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"ON_LOOKERS");
PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"FOOD" );
Re: Animations Help -
MP2 - 23.03.2014
You're not pre-loading the DILDO library, which is the one you want to use.