• How do i make the angle freeze if that makes sense.
    0 replies, posted
I have made a camera showing a top-down view of the player. But when the the player moves/angle the camera does with it. How would I freeze that? I have this so far: hook.Add("CalcView", "OpenMapCamera", function(ply, pos, angles, fov)     local ply = LocalPlayer()     ply.IsMapOpen = false     if input.IsKeyDown(KEY_INSERT) then         local view = {}         pos = ply:GetPos()         view.origin = pos-(angles:Up() * -1000)         view.angles = Vector(450,0,0)         view.fov = fov         view.drawviewer = true         ply.IsMapOpen = true         return view     end end) hook.Add("HUDShouldDraw", "DisableHUD", function(hide)     local ply = LocalPlayer()     if ply.IsMapOpen then         return false     end end)
Sorry, you need to Log In to post a reply to this thread.