Click or drag to resize

VehicleGetDistanceFromPoint Method

This function can be used to calculate the distance (as a float) between this vehicle and another map coordinate. This can be useful to detect how far a vehicle away is from a location.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public float GetDistanceFromPoint(
	Vector3 point
)

Parameters

point
Type: SampSharp.Entities.SAMPVector3
The point.

Return Value

Type: Single
A float containing the distance from the point specified in the coordinates.
See Also