Making a NPC that copies everything you do?
#1

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.
Reply
#2

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
Reply
#3

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.
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)