[help] /follow command
#1

I need help.
I want to make a command that follow after a player.
Like /follow 1 - That will follow after the player that ID = 1.
I know that I need timer and get his position but how can I see his back? (Like the user see)
Reply
#2

Maybe TogglePlayerSpectating and PlayerSpectatePlayer could help ?
Reply
#3

I tried, It doesn't work
Reply
#4

Hm, I doubt you can 'literally' follow a player ... what you can do, is update the player position. Set a timer, that gets the player position and set the follower position. Can`t think of something else.
Reply
#5

I did it and it works.
But how can I put the camera relative to FacingAngle? What is the formula?
Reply
#6

Wait ... you did it with teleport or you actually found a way to 'follow' other player?

ps: You can use a timer and set the camera behind player, using this function:
pawn Код:
SetCameraBehindPlayer(playerid);
Reply
#7

You could actually set players animation to walking, and change facing angle so the player will turn. If the other player is getting to far - set him running animation.
Reply
#8

U wanna to recon player, search command /recon on SAMP forum
Reply
#9

Quote:
Originally Posted by Macluawn
Посмотреть сообщение
You could actually set players animation to walking, and change facing angle so the player will turn. If the other player is getting to far - set him running animation.
It won't work, the 'teleport' effect of SetPlayerPos will still be there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)