Garry's Mod Wiki

GM:CalcVehicleView

  table GM:CalcVehicleView( Vehicle veh, Player ply, table view )

Description

Called from GM:CalcView when player is in driving a vehicle.

This hook may not be called in gamemodes that override GM:CalcView.

Arguments

1 Vehicle veh
The vehicle the player is driving
2 Player ply
The vehicle driver
3 table view
The view data containing players FOV, view position and angles, see CamData structure

Returns

1 table
The modified view table containing new values, see CamData structure