Question Teleport problem
#1

Hey all, I got a question namely: Teleport question. I know how to make it, but let we do as example we do the grove street teleport. When a player type /grove he will be standard see CJ's house. How do I make that? now I use CameraBehindPlayer, but how can I fix that a player standard will look to cj's house? when he type /grove he will be automatically and standard see the cj house, But when I use SetPlayerFacingAngly, Than I will see my caracters face. And that is anoying. Anyone who can help me? Thanks Royriky123
Reply
#2

Hey there.

So you want the player's CAMERA to be teleported to grove street when the player types /grove?
Reply
#3

He know how to make teleports,
But he mean, when a player type /grove than will the player been teleported to grove street and the player will be look to carl johnsons house.
Reply
#4

Oh right.

Well basically, you need to use "SetPlayerFacingAngle" FIRST, then use "SetCameraBehindPlayer".

So first, you need to make the player's character face towards grove street, and then move the camera behind them e.g.
pawn Код:
if(!strcmp(cmdtext,"/grove",true)){
    SetPlayerPos(playerid,....);
    SetPlayerFacingAngle(playerid,ANGLE);
    SetCameraBehindPlayer(playerid);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)