GetDistanceBetweenElements
Jump to navigation
Jump to search
Syntax
int getDistanceBetweenElements(arg1, arg2)
Required Arguments
- arg1: Requiere un Object/Vehicle/Ped/Player.
- arg2: Requiere un Object/Vehicle/Ped/Player.
Returns
Retorna la distancia entre los dos puntos.
Code
Click to collapse [-]
Uso en Client/Server - Sidefunction getDistanceBetweenElements(arg1, arg2) local element1 = Vector3(getElementPosition( arg1 )) local element2 = Vector3(getElementPosition( arg2 )) local distance = getDistanceBetweenPoints3D( element1,element2 ) return distance end
Author: Clark_Devlin