Keep Camera Angle
#6

Quote:
Originally Posted by DavidBilla
Посмотреть сообщение
@NaS

Isn't there any other solution like
Detaching and re attaching the cam in a repeated timer?
Sorry you were right. Just tried around and it does indeed work. Set the angle first like you suggested, then re-attach it again.

Quote:
Originally Posted by Romero837
Посмотреть сообщение
This would be a spectator mode since the cameras will be monitored from the LSPD control center, how could it be done to always fix the camera in the direction the vehicle will go, with the player using the PlayerSpectateVehicle function?
Try like David suggested, attach an Object to the vehicle and then repeatedly update the Camera and attach it to the Object again in a timer.
No need for PlayerSpectateVehicle here (only TogglePlayerSpectating).

If you want to try the PlayerSpectateVehicle method, you only have to call PlayerSpectateVehicle with mode 3. But the camera position is different for many cars. It'll be smoother than the Camera Attaching method though.

You can also combine those two! First use PlayerSpectateVehicle, and then attach the Camera to an Object, which is attached to the Vehicle. This will prevent the Camera from being rotated while at the same time maintaining the direction the vehicle is looking (smoothly). Seems a bit buggy though. It sometimes warps the position and stops the cam from being attached.. So maybe you need to re-attach it regularly or so. Guess the attaching and the mode aren't working too well together.
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)