SA-MP Forums Archive
Making a NPC that copies everything you do? - 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: Making a NPC that copies everything you do? (/showthread.php?tid=256266)



Making a NPC that copies everything you do? - Zack9764 - 19.05.2011

Hi, I've never made or did anything with NPCs. So I have barely an idea of how it works. But does anyone have a filterscript or anything with NPCs that copy your exact movement? It would be nice if they do it in a vehicle.

If you want to know exactly what I'm looking for it's this:

I want to fly a Hydra and have a NPC hydra flying right beside me and staying with me, perfectly.


Re: Making a NPC that copies everything you do? - grand.Theft.Otto - 19.05.2011

Well it would be hard to make that, but the only thing close to that is if you record you NPC doing an animation or driving then it will do the exact same, it even records your animation if you point your gun out the window while driving and recording your NPC haha .

How to create an NPC:

https://sampforum.blast.hk/showthread.php?tid=95034


Re: Making a NPC that copies everything you do? - Bakr - 20.05.2011

The only way I could think of doing this would be to constantly apply an animation based on what the player is doing, and setting the velocity with that of the player as well. However, it will never be perfect.

There use to be a plugin to handle the movement of NPCs, CNPC, but it was removed.


Re: Making a NPC that copies everything you do? - Zack9764 - 20.05.2011

Can anyone think of a possible code with OnPlayerKeyStateChange or whatever it is?