Making camera look from left side to player
#1

Hello, I wondered, is it possible to make camera look to player from left? just like this:

on foot:



in a car:



Maybie there is a function like SetCameraToLeftForPlayer?

Reply
#2

In a car its just look left button(usually q e)

Scriptable wise:
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/GetPlayerFacingAngle
https://sampwiki.blast.hk/wiki/SetPlayerCameraPos
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt
https://sampwiki.blast.hk/wiki/SetCameraBehindPlayer

And a little bit of that lovely math.
Reply
#3

I am very bad in it. Can you give me an example code, please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)