Garry's Mod Wiki

DRIVE:CalcView

  DRIVE:CalcView( table view_in )

Description

Optionally alter the player's view if they are using this drive mode.

This hook is called from the default implementation of GM:CalcView which is here. Therefore, it will not be called if any other hook added to CalcView returns any value, or if the current gamemode overrides the default hook and does not call drive.CalcView.

Arguments

1 table with ViewData structure view_in
The view, see ViewData structure. Modify this table.