NAVIGATION
Wiki » Reference » DOOM 3 Script Events » distanceTo
ARTICLE
distanceTo
This is a script event on id Tech 4 engines, present on DOOM 3, Quake 4 and Prey. Below you can find its signature for each game that declares it.
DOOM 3
Returns the distance of this entity to another entity.
| Property | Value |
|---|---|
| Type | script event |
| Returns | float |
| Parameters | entity other |
| Section | all entities |
Quake 4
| Property | Value |
|---|---|
| Type | script event |
| Returns | float |
| Parameters | entity |
Prey
| Property | Value |
|---|---|
| Type | script event |
| Returns | float |
| Parameters | entity |
Last changed Sep 21, 2026
