Vehicle/GetVehicleViewPosition

From Garry's Mod
Jump to: navigation, search
 Vehicle:GetVehicleViewPosition( )

Contents

Description

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

Arguments

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

Vector

The view position, will be 0, 0, 0 on failure

Returns

Angle

The view angles, will be 0, 0, 0 on failure

Returns

number

The field of view, will be 0 on failure
Personal tools
Navigation