[Ajuda] Girar camera do jogador ao teleportar
#1

Existe alguma funзгo nativa do SAMP que realize o titulo deste tуpico? tenho teleportes em minha GM, alguns interiores ao teleportar, a cвmera fica desalinhada.. eu sei girar o jogador para o angulo correto, mas a cвmera nгo consegui ainda.. tentei usar o SetPlayerCameraLookAt porem a cвmera sai do jogador..
Reply
#2

Nгo sei bem o que vocк quer, mas tente com Interpolate.

https://sampwiki.blast.hk/wiki/InterpolateCameraPos
https://sampwiki.blast.hk/wiki/InterpolateCameraLookAt
Reply
#3

PHP код:
SetCameraBehindPlayer(playerid
Se nгo for isso, Eu n entendi oq quer, Essa funзгo seta a cвmera atrбs do jogador(a).
Reply
#4

SetPlayerFacingAngle
Reply
#5

GetPlayerFacingAngle: https://sampwiki.blast.hk/wiki/GetPlayerFacingAngle
SetPlayerFacingAngle: https://sampwiki.blast.hk/wiki/SetPlayerFacingAngle

Ou se vocк quiser que a camera fique exatamente nas costas do player:

SetCameraBehindPlayer https://sampwiki.blast.hk/wiki/SetCameraBehindPlayer
Reply
#6

Quote:
Originally Posted by SamuelMatheus05
SetPlayerFacingAngle
Quote:
Originally Posted by zHellSync
eu sei girar o jogador para o angulo correto
Quote:
Originally Posted by vitinhosamp
Quote:
Originally Posted by zHellSync
eu sei girar o jogador para o angulo correto
Quote:
Originally Posted by vitinhosamp
Quote:
Originally Posted by AutoMatic2
PHP код:
SetCameraBehindPlayer(playerid
Reply
#7

Tentar esclarecer, quero que ao teleportar a camera do jogador fique alinhada com a visгo, exemplo.. ao usar o SetPlayerSpawn a camera e jogador fica certinha, ja se eu usar somente SetPlayerPos para um interior, a camera continua virada como estava anteriormente..

AQUI QUANDO VOU ENTRAR NO PICKUP PARA TELEPORTAR, PODE NOTAR A CAMERA CENTRALIZADA:

E NO OUTRO SCREENSHOT MOSTRA DENTRO DO INTERIOR A CAMERA VOLTADA PARA A PAREDE, EU NAO VIREI A CAMERA.. PEGUEI O PICKUP E DEI PRINT
Reply
#8

Seta posiзгo do player de frente p porta e dps usa set camera behind.
Reply
#9

To criando um servidor RPG sem fazer nada mesmo e tbm vejo esses detalhes, eu te indico usar os вngulos 90, 180, 270, 360 ou 0, e tbm usar a funзгo SetCameraBehindPlayer(playerid).

EXEMPLO:


PHP код:
SetPlayerPos(playerid1234.56789101.11213141.5161);
SetPlayerFacingAngle(playerid90.0000);
SetPlayerInterior(playerid7);
SetCameraBehindPlayer(playerid); 
Reply
#10

Quote:
Originally Posted by AutoMatic2
Посмотреть сообщение
To criando um servidor RPG sem fazer nada mesmo e tbm vejo esses detalhes, eu te indico usar os вngulos 90, 180, 270, 360 ou 0, e tbm usar a funзгo SetCameraBehindPlayer(playerid).

EXEMPLO:


PHP код:
SetPlayerPos(playerid1234.56789101.11213141.5161);
SetPlayerFacingAngle(playerid90.0000);
SetPlayerInterior(playerid7);
SetCameraBehindPlayer(playerid); 
Obrigado! boa sorte em seu projeto
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)