Entity::dist: Difference between revisions
mNo edit summary |
(→Syntax) |
||
| Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
{{ | {{ServerSide}} | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
entity.dist(entity2.position); | entity.dist(entity2.position); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 05:12, 16 August 2018
Function that gets the distance between two entities.
Parameters
- position: Vector3
Syntax
Server-Side
entity.dist(entity2.position);