Hi. I'm using java script to create my game and i want to change the field of view in order to give the impression of zooming in.
var Normal_FOV = 90.0;
var Scoped_FOV = 45;
function Update () {
if (input.GetButton("0")){
if (main.camera(FOV = Normal_FOV)){
main.Camera(FOV = Scoped_FOV)
}
else if (main.camera(FOV = Scoped_FOV)){
main.camera(FOV = Normal_FOV)
}
}
}
This is the code I created but i dont think the FOV works. what is the correct term for Field Of View