WEAPON:TranslateFOV

From Garry's Mod
Jump to: navigation, search
 WEAPON:TranslateFOV( )

Contents

Description

Allows to change players Field Of View while player holds the weapon.

Arguments

number fov

The current/default FOV.

Returns

number

The target FOV.

Examples

Example

Reduces players FOV by 30.

function SWEP:TranslateFOV( fov )
	return fov - 30
end

Output:

Players view is zoomed in.
Personal tools
Navigation