Entity::dist: Difference between revisions
(Created page with "Function that gets the distance between two entities. ==Parameters== * '''position''': {{RageType|Vector3}} ==Syntax== {{Shared}} <syntaxhighlight lang="javascript"> entity.d...") |
mNo edit summary |
||
| Line 7: | Line 7: | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
entity.dist(entity2.position); | entity.dist(entity2.position); | ||
</ | </syntaxhighlight> | ||
Revision as of 22:08, 19 January 2018
Function that gets the distance between two entities.
Parameters
- position: Vector3
Syntax
Shared
entity.dist(entity2.position);