Keep Camera Angle
#3

It's not possible to influence the camera angle while it is attached. Any Camera functions will detach the camera, TogglePlayerControllable seems the only way to freeze it but the camera will be locked at a specific angle, facing somewhere up (useless).

You can however work with the different spectate modes. Mode 3 fixes the Camera in the direction the vehicle is facing and lets you also set the look at position. But the problem is that you cannot drive yourself while having the cam activated...

So it's not really possible to create a fixed dashcam while driving the vehicle, but something similar if you are spectator.

Quote:
Originally Posted by DavidBilla
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/SetPlayerCameraLookAt

Use this function in a timer to set the camera's lookat every second

For the x and y parameters , use the getxyinfrontofplayer function
And set the angle to the vehicle's z angle
That will detach the camera and place it at the last position it was at before attaching it.
Reply


Messages In This Thread
Keep Camera Angle - by Romero837 - 23.06.2017, 03:20
Re: Keep Camera Angle - by DavidBilla - 23.06.2017, 03:50
Re: Keep Camera Angle - by NaS - 23.06.2017, 04:04
Re: Keep Camera Angle - by DavidBilla - 23.06.2017, 04:11
Respuesta: Keep Camera Angle - by Romero837 - 23.06.2017, 04:17
Re: Keep Camera Angle - by NaS - 23.06.2017, 04:18
Respuesta: Keep Camera Angle - by Romero837 - 25.06.2017, 01:01
Respuesta: Keep Camera Angle - by Romero837 - 25.06.2017, 13:15
Re: Respuesta: Keep Camera Angle - by NaS - 25.06.2017, 16:30
Respuesta: Re: Respuesta: Keep Camera Angle - by Romero837 - 26.06.2017, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)