Garry's Mod Wiki

Vehicle:GetVehicleViewPosition

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

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 3
Generate Html 6
SaveChanges (1) 12
Render Body 0
Render Sidebar 7