Monday, November 16, 2026
Building, modding and fragging like it's 1998
142778 visitors

Your #1 source for retro FPS developmentY2K READY

*** func_arena goes live, let the carnage begin! *** ET: Legacy 2.86.0 is out! *** Engine of the Week: qrustyquake by cyanbun96 *** Server admins: read our migration guide before Friday *** Ironwail 0.8.2 is out! ***

NAVIGATION

Wiki » Reference » DOOM 3 Script Events » animLength

ARTICLE

animLength

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 length of the anim in seconds. If the entity has multiple anims with animName, length may not match the anim that is played. Use chooseAnim to get a non-random anim and pass that string into animLength.

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