Difference between revisions of "Entity::distSquared"

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 +
__TOC__
 +
 +
{{ServersideJsFunction}}
 +
 
Function that gets the squared distance between two entities.
 
Function that gets the squared distance between two entities.
 +
 +
{{JSContainer|
 +
 
==Parameters==
 
==Parameters==
 
* '''position''': {{RageType|Vector3}}
 
* '''position''': {{RageType|Vector3}}
Line 9: Line 16:
 
</pre>
 
</pre>
 
}}
 
}}
 
+
}}
  
 
==See also==
 
==See also==

Latest revision as of 12:32, 2 December 2019

Server-Side
Function

Js.png JavaScript



Function that gets the squared distance between two entities.

JavaScript Syntax
Jslogo.png


Parameters

  • position: Vector3

Syntax

Server-Side
entity.distSquared(entity2.position);


See also