Programmer is doing bugfix since more than 2 months and I don't have permission to access him.
this is my CameraManager.lua:
require("Scripts/class")
require("Scripts/constants/keycodes")
require("Scripts/hooks")
local class=CreateClass(...)
function class:CreateObject(model)
local object=self.super:CreateObject(model)
--object.cameraFOV = CameraZoom(camera,1.0)
SetFarDOFRange(2,5)
SetFarDOFStrength(1)
SetFarDOF(1)
function object:DHook()
-- Test if keys are working
if KeyDown(KEY_U)==1 then
SetFarDOF(1)
end
if KeyDown(KEY_Y)==1 then
SetFarDOF(0)
end
end
AddHook("Flip" , object.DHook )
function object:Free()
RemoveHook("Flip" , object.DHook )
self.super:Free()
end
end
I can enable/Disable DOF with keys but I have no Ideas how to access camera FOV.