[HELP]How to make a NPC do an Animation ---CLOSED---
#6

I've tryed the timer with the applyanimation there too, but still nothing?
i added this:
forward animtimer(playerid);

public animtimer(playerid)
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",2.1,1,1, 1,1,0);
ApplyAnimation(playerid,"PED","IDLE_CHAT",2.1,1,1, 1,1,0);
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "NPC", true))
{
ApplyAnimation(playerid,"PED","IDLE_CHAT",2.1,1,1, 1,1,0);
ApplyAnimation(playerid,"PED","IDLE_CHAT",2.1,1,1, 1,1,0);
SetTimer("animtimer", 1000, true);
return 1;
}
}
}
Do the NPC Animations work if they are in a building that was added and that it isn't on the floor?
Do they have to be on the ground for it to work?
I just thought of this because when i'm far away and my line of sight can't see the building, but can see the NPC he does the falling animation, but it doesn't really fall.
Reply


Messages In This Thread
[HELP]How to make a NPC do an Animation ---CLOSED--- - by Epic Shower - 17.03.2010, 01:21
Re: [HELP] Make NPC do an Animation! - by andrewp - 17.03.2010, 01:23
Re: [HELP] Make NPC do an Animation! - by Epic Shower - 17.03.2010, 15:34
Re: [HELP] Make NPC do an Animation! - by Epic Shower - 17.03.2010, 15:36
Re: [HELP] Make NPC do an Animation! - by boelie - 17.03.2010, 15:37
Re: [HELP] Make NPC do an Animation! - by Epic Shower - 17.03.2010, 21:33
Re: [HELP] Make NPC do an Animation! - by boelie - 18.03.2010, 10:31
Re: [HELP] Make NPC do an Animation! - by XGh0stz - 18.03.2010, 11:48
Re: [HELP] Make NPC do an Animation! - by V1ceC1ty - 18.03.2010, 12:20
Re: [HELP] Make NPC do an Animation! - by Epic Shower - 18.03.2010, 23:11

Forum Jump:


Users browsing this thread: 2 Guest(s)