• Reseting CalcView?
    3 replies, posted
[code] function ResetCam() hook.Add( "CalcView", "CCTVReset", function( ply, pos, angles, fov ) local view = {} view.origin = firstpos view.angles = firstangles view.fov = fov view.drawviewer = true return view end) end [/code] Hi, I was wondering how to reset CalcView, I had attempted to store values from the first time I call calcview and reset them here but that did not work, any help is appricated thanks.
What do you mean "reset CalcView"? If you have a CalcView hook running that you don't want, you can just remove it
Is firstpos actually defined? If its a local variable, make sure its inside the same file, and outside of any function, else the 'ResetCam' function cannot access firstpos, firstangles etc.
[QUOTE=JasonMan34;51187934]What do you mean "reset CalcView"? If you have a CalcView hook running that you don't want, you can just remove it[/QUOTE] Thanks.
Sorry, you need to Log In to post a reply to this thread.