SA-MP Forums Archive
NPC Animation? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC Animation? (/showthread.php?tid=119602)



NPC Animation? - wordas - 08.01.2010

ok so i just want to make a standing npc and then a certain condition happens he plays a animation is this posible?


Re: NPC Animation? - lakierka - 26.01.2010

I need it too. So it's possible?


Re: NPC Animation? - Justsmile - 26.01.2010

Yes, but just while recording.


Re: NPC Animation? - SiJ - 26.01.2010

Make a few recordings:
1. NPC Idle - when it just stands and do nothing..
2. NPC Animation - When condition happens, start this recording (and use animation while recording)..

Hope it works :P


Re: NPC Animation? - BMUK - 26.01.2010

As far as I know, anims dont show in NPC recordings...

You can use ApplyAnimation(..) on the NPC just like you can use it on real players


Re: NPC Animation? - SiJ - 27.01.2010

Quote:
Originally Posted by BMUK
As far as I know, anims dont show in NPC recordings...

You can use ApplyAnimation(..) on the NPC just like you can use it on real players
There is no ApplyAnimation in NPC scripts, unless you apply them from your gamemode.. But I tried doing ApplyAnimation on my gamemode on bot spawn, but it didn't worked... So maybe, that's just not possible atm?


Re: NPC Animation? - BMUK - 27.01.2010

I know that there is no ApplyAnimation in the NPC script

I did obviously mean that you can use it in your gamemode on the NPC.

And.. you can! Trust me