HELP: FCNPC_ApplyAnimation dont work
#1

Hi friends, i dont know use FCNPC_ApplyAnimation, I do not get an error but it does not work, someone can help me?

PHP код:
FCNPC_ApplyAnimation(bot2"MISC""Plyrlean_loop"4.101101); 
Reply
#2

you have to preload the AnimLib on players connect to make the anims synced for players and NPC's


PHP код:
public OnPlayerConnect(playerid)
{
   
PreloadAnims(playerid);
}
stock PreloadAnims(playerid)
{
    
PreloadAnimLib(playerid,"DANCING");
    
PreloadAnimLib(playerid,"HEIST9");
    
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" );
    
PreloadAnimLib(playerid,"ped" );
    
PreloadAnimLib(playerid,"MISC" );
    
PreloadAnimLib(playerid,"POLICE" );
    
PreloadAnimLib(playerid,"GRAVEYARD" );
    
PreloadAnimLib(playerid,"WUZI" );
    
PreloadAnimLib(playerid,"SUNBATHE" );
    
PreloadAnimLib(playerid,"PLAYIDLES" );
    
PreloadAnimLib(playerid,"CAMERA" );
    
PreloadAnimLib(playerid,"RIOT" );
    
PreloadAnimLib(playerid,"DAM_JUMP" );
    
PreloadAnimLib(playerid,"JST_BUISNESS" );
    
PreloadAnimLib(playerid,"KISSING" );
    
PreloadAnimLib(playerid,"GANGS" );
    
PreloadAnimLib(playerid,"GHANDS" );
    
PreloadAnimLib(playerid,"BLOWJOBZ" );
    
PreloadAnimLib(playerid,"SWEET" );
}
stock PreloadAnimLib(playeridanimlib[]) {
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0); } 
Reply
#3

Quote:
Originally Posted by khRamin78
Посмотреть сообщение
you have to preload the AnimLib on players connect to make the anims synced for players and NPC's


PHP код:
public OnPlayerConnect(playerid)
{
   
PreloadAnims(playerid);
}
stock PreloadAnims(playerid)
{
    
PreloadAnimLib(playerid,"DANCING");
    
PreloadAnimLib(playerid,"HEIST9");
    
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" );
    
PreloadAnimLib(playerid,"ped" );
    
PreloadAnimLib(playerid,"MISC" );
    
PreloadAnimLib(playerid,"POLICE" );
    
PreloadAnimLib(playerid,"GRAVEYARD" );
    
PreloadAnimLib(playerid,"WUZI" );
    
PreloadAnimLib(playerid,"SUNBATHE" );
    
PreloadAnimLib(playerid,"PLAYIDLES" );
    
PreloadAnimLib(playerid,"CAMERA" );
    
PreloadAnimLib(playerid,"RIOT" );
    
PreloadAnimLib(playerid,"DAM_JUMP" );
    
PreloadAnimLib(playerid,"JST_BUISNESS" );
    
PreloadAnimLib(playerid,"KISSING" );
    
PreloadAnimLib(playerid,"GANGS" );
    
PreloadAnimLib(playerid,"GHANDS" );
    
PreloadAnimLib(playerid,"BLOWJOBZ" );
    
PreloadAnimLib(playerid,"SWEET" );
}
stock PreloadAnimLib(playeridanimlib[]) {
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0); } 
Thx very much, but FCNPC_ApplyAnimation still dont work, do u know if I'm doing something wrong in the code?. (copy ur code in my gamemode)

PHP код:
FCNPC_ApplyAnimation(bot2"MISC""Plyrlean_loop"4.111101); 
Reply
#4

Quote:
Originally Posted by bookknp
Посмотреть сообщение
Thx very much, but FCNPC_ApplyAnimation still dont work, do u know if I'm doing something wrong in the code?. (copy ur code in my gamemode)

PHP код:
FCNPC_ApplyAnimation(bot2"MISC""Plyrlean_loop"4.111101); 
Solve it, this function if work!!

PHP код:
FCNPC_SetAnimationByName(bot2"MISC:Plyrlean_loop"4.111101); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)