How to apply animation to NPC?
#1

Hey guys, how can i apply an animation to a NPC?

i tried to following but it didnt work:
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
    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");
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "NPC", true))
    {
      SetPlayerSkin(playerid,104);
      SetPlayerPos(playerid,221.448440,1241.429443,1082.140625);
      SetPlayerFacingAngle(playerid,245);
      GivePlayerWeapon(playerid,22,1000);
      ApplyAnimation(playerid,"PED","gang_gunstand",4.0,1,1,1,1,1);
    }
}
Reply


Messages In This Thread
How to apply animation to NPC? - by DaneAMattie - 15.11.2010, 18:53
Re: How to apply animation to NPC? - by [MWR]Blood - 15.11.2010, 18:55
Re: How to apply animation to NPC? - by The_Moddler - 15.11.2010, 18:55
Re: How to apply animation to NPC? - by DaneAMattie - 15.11.2010, 19:03
Re: How to apply animation to NPC? - by DaneAMattie - 15.11.2010, 19:14
Re: How to apply animation to NPC? - by boelie - 15.11.2010, 21:51

Forum Jump:


Users browsing this thread: 1 Guest(s)