Garry's Mod Wiki

Vehicle:CheckExitPoint

  Vector Vehicle:CheckExitPoint( number yaw, number distance )

Description

Tries to find an Exit Point for leaving vehicle, if one is unobstructed in the direction given.

Arguments

1 number yaw
Yaw/roll from vehicle angle to check for exit
2 number distance
Distance from origin to drop player

Returns

1 Vector
Returns the vector for exit position or nil if cannot exit that way.