Scripting/Client/Functions/GetCameraFov

(v0.4.4) The field of view in use right now, in degrees (the game default is about 70 on foot; it moves while a SetCameraFov blend runs).

Syntax

GetCameraFov()

Returns

float

Example

function onScriptLoad()
{
	local result = GetCameraFov();
	MessagePlayer( "GetCameraFov returned: " + result, player );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Input

Categories: Client functions | Input