As this function to create actors?
#1

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

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)