NPC - 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)
+--- Thread: NPC (
/showthread.php?tid=425177)
NPC -
colonel-top - 24.03.2013
Hello guys did someone know about Remote NPC in game ?
Examples ; Create NPC in samp server then i can remote control that npc can shoot can get in vehicles
on my control can someone do this ? Thank you
Re: NPC -
AnnaSB - 24.07.2014
I have a CPU burner solution for that, as long as It's too much (and also simple), I'll tell it literally:
Bind FORWARD & BACKWARD (Holding) to use trigonometric calculations and find the facing angle's triangular aspect ratio and multiple it by a little number and add/subtract it to/from the NPC's current position.
Use a reverse ratio for LEFT & RIGHT.
Bind F/ENTER to find the closest vehicle (if any) and then PutPlayerInVehicle...
and if in vehicle, RemovePlayerFromVehicle...
... Looks like an airbreaking robot ._.
and eats your server's CPU as well