Hello, im trying to either change between two cameras or dynamically change the fov. I want to be using custom internal cameras and I have those both in place. But I can't seem to find any way to do either of these things. I found this reference but not a way to actually use any of it: https://angelo234.github.io/List-of-BeamNG-Functions-And-Fields/velua.html Any help would be appreciated.
Only for free camera: Code: core_camera.setFOV(angle) For all cameras: Code: -- sample code onUpdate(dt) if core_camera.getFovDeg() < finalFOV then core_camera.cameraZoom(direction * zoomSpeed) -- direction is 1 or -1 else core_camera.cameraZoom(0) -- stop zooming end end Instead of calling 'getFovDeg()' method you could try implementing some dt-dependent FoV changer
Can you tell me how to specifically do that? I haven't had much luck making LUA mods that work. I want to set all car cameras (internal and hood especially) to a certain FOV, like say 65 degrees, and have it 'sticky' there for any car. I don't care about the Free Camera. Thanks!