NAVIGATION
Wiki » Reference » DOOM 3 Script Events » animDistance
ARTICLE
animDistance
This is a script event on id Tech 4 engines, present on DOOM 3 and Prey. Below you can find its signature for each game that declares it.
DOOM 3
Returns the distance that the anim travels. If the entity has multiple anims with animName, the distance may not match the anim that is played. Use chooseAnim to get a non-random anim and pass that string into animDistance.
| Property | Value |
|---|---|
| Type | script event |
| Returns | float |
| Parameters | float channel, string animName |
| Section | actors (players and AI) |
Prey
| Property | Value |
|---|---|
| Type | script event |
| Returns | float |
| Parameters | float, string |
Last changed Sep 21, 2026
