Entity Drawing height problem

I am working on drawing on entity. But there is a problem.

I want to set cam3d2d 's height to depend on what it is.

It could be any entity so don’t tell me do ‘if entity’s model = stove then’ thing.

A Steak.

A stove.

Entity:GetModelBounds

So how should be Cam3d2d’s vector now?

It’s now like:


cam.Start3D2D( entity:GetPos() + Vector( 0, 0, 15 ), Angle( 0, LocalPlayer():EyeAngles().yaw - 90, 90 ), 0.02 )

[editline]13th October 2017[/editline]

It is solved.

There is the solution I made:



	local som = -(entity:GetModelBounds()[2]) + 5 -- got modelbounds max

	cam.Start3D2D( entity:GetPos() + Vector(0,0,som) , Angle( 0, LocalPlayer():EyeAngles().yaw - 90, 90 ), 0.02 )