Teleport
#1

What should i use in my teleport commands?

If i stay with my skins face looking in to my screen and use a teleport command, its still the same, but i want the camera to look straight (so you see back of your skin)

should i use SetPlayerFacingAngle, SetPlayerCameraLookAt, SetPlayerCameraPos, SetCameraBehindPlayer ?

Thanks.
Reply
#2

Let's see...

Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
(so you see back of your skin)
Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
SetPlayerFacingAngle, SetPlayerCameraLookAt, SetPlayerCameraPos, SetCameraBehindPlayer ?
There's one function that is literally named with what you want to do. Can't find it?

Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
SetPlayerFacingAngle, SetPlayerCameraLookAt, SetPlayerCameraPos, SetCameraBehindPlayer ?
Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
SetPlayerCameraLookAt, SetPlayerCameraPos, SetCameraBehindPlayer ?
Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
SetPlayerCameraPos, SetCameraBehindPlayer ?
Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
SetCameraBehindPlayer
Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
(so you see back of your skin)
A tip for the future, if you really want to learn, you should test whatever happens with the functions instead of posting such things for others to answer. It's part of the learning process to break things.
Reply
#3

https://sampwiki.blast.hk/wiki/SetPlayerCameraPos

Read this.
Reply
#4

https://sampwiki.blast.hk/wiki/SetPlayerCameraPos
Reply
#5

Reply
#6

Quote:
Originally Posted by Ananisiki
Посмотреть сообщение
My dear, /save with the screen pos you want.
Reply
#7

pawn Код:
AddPlayerClass(189,960.7136,-53.1602,1001.1172,90.1789,0,0,0,0,0,0);
This is a pos i set after entering a checkpoint, the North on the radar is on the right so i guess i need to set the facing angle to West, which one is it then?
Reply
#8

SetPlayerFacingAngle
Reply
#9

SetPlayerFacingAngle.

This wont change camera position though.

Use

Код:
SetPlayerCameraPos(playerid, 960.7136,-53.1602,1001.1172);
Reply
#10

I got another problem, this doesn't work, i can refill it after using it..

pawn Код:
if(tickcount() - HealthAbuse[playerid] < 180000) return SendClientMessage(playerid, COLOR_RED, "Please Wait.");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)