• How do i make the angle freeze if that makes sense for my camera.
    1 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 = {} 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)
You can probably use SetupMove Similar thread with many snippets: Aim at cursor in top/down view
Sorry, you need to Log In to post a reply to this thread.