Entity::distSquared: Difference between revisions
No edit summary |
No edit summary |
||
| 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
Function that gets the squared distance between two entities.
JavaScript Syntax
Parameters
- position: Vector3
Syntax
Server-Side
entity.distSquared(entity2.position);