Garry's Mod Wiki

Vehicle:GetVehicleViewPosition

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

Page Links


Special Pages


Wikis

?

Render Time: 33ms

DB GetPage 5
Generate Html 4
SaveChanges (1) 9
Render Body 0
Render Sidebar 12