GM:CalcView Birds Eye View

How to create a Birds Eye View view for GM:CalcView

My Code:


local function MyCalcView( ply, pos, angles, fov )
	local view = {}

	view.origin = pos-( angles:Forward()*300 )
	view.angles = 1000
	view.fov = fov
	view.drawviewer = true

	return view
end

hook.Add( "CalcView", "MyCalcView", MyCalcView )



You didn’t make a question, and your code makes no sense. Did you try to run it? What was the result?

The first problem I see is that view.angles must be an Angle, not a number.

All it did was just go intro third person mode and was zoomed out really far.