NAVIGATION
Wiki » Reference » DOOM 3 Script Events » trace
ARTICLE
trace
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 fraction of movement completed before the box from 'mins' to 'maxs' hits solid geometry when moving from 'start' to 'end'. The 'passEntity' is considered non-solid during the move.
| Property | Value |
|---|---|
| Type | script event |
| Returns | float |
| Parameters | vector start, vector end, vector mins, vector maxs, float contents_mask, entity passEntity |
| Section | system events (called via 'sys.') |
Quake 4
| Property | Value |
|---|---|
| Type | script event |
| Returns | float |
| Parameters | vector, vector, vector, vector, float, entity |
Prey
| Property | Value |
|---|---|
| Type | script event |
| Returns | float |
| Parameters | vector, vector, vector, vector, float, entity |
Last changed Sep 21, 2026
