As this function to create actors? - 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: As this function to create actors? (
/showthread.php?tid=594227)
As this function to create actors? -
Unrea1 - 14.11.2015
Hello,
basically what I try to do is a system of NPCs with the actors, and I need a function to make the actors (when near a human player) you begin to lentamenta teleport to the player, with rotation (view) to the player I just need teleport function but said mathematical calculation is not performed slowly to teleport to the position of the player (being in the original position of the actor)
Thank you
Re: As this function to create actors? -
Gammix - 15.11.2015
A long time ago, this include still have some useful functions:
https://sampforum.blast.hk/showthread.php?tid=572366
You don't need to use it, you can checkout the functions and convert them to your actor functions.
For example, Making an actor face the player:
pawn Код:
PED_SetFacingPlayer(pedid, playerid);