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

hmm.. try this callback here ; https://sampwiki.blast.hk/wiki/NPC:OnPlayerStreamIn

its for the npc script, put a SendCommand under the Onplayerstreamedin.
Make the command itself in your gamemode.
The command must set the animation

so something like this here;

in the npc script
Код:
public OnPlayerStreamIn(playerid)
{
    SendCommand("/animate");
  return 1;
}
in normal script under onplayercommandtext;
Код:
	if(strcmp(cmdtext, "/animate", true, 10) == 0)
	{ 
ApplyAnimation..blablabla (the kind of animation you want
good luck!
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: 1 Guest(s)