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-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
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