Garry's Mod Wiki

Garry's Mod Wiki

  Vector, Angle, number Vehicle:GetVehicleViewPosition( number role = 0 )

Description

Returns the view position and forward angle of a given passenger seat.

Arguments

1 number role = 0
The passenger role. 0 is the driver. This parameter seems to be ignored by the game engine and is therefore optional.

Returns

1 Vector
The view position, will be 0, 0, 0 on failure
2 Angle
The view angles, will be 0, 0, 0 on failure
3 number
The field of view, will be 0 on failure

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...