ENT.CalcView

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameCalcView
SyntaxENT:CalcView( Player Ply, Vector Origin, Angle Angles, Integer FieldOfView )
DescriptionCalculates the players view when set with Player.SetScriptedVehicle
ReturnsTable
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=ENT.CalcView]ENT.CalcView [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Examples

DescriptionDraws the view exactly as normal.
Used onNewerClient.png
Code
function ENT:CalcView(Player, Origin, Angles, FieldOfView)
	local View = {}
	View.origin = Origin
	View.angles = Angles
	View.fov = FieldOfView 
	return View
end
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox