Return to Main Docs Page

trace_t

Table structure used as trace result. Default values are when the trace hits nothing.

Members



Type Name Description
Vector startpos The start of the TraceLine as a Vector.
Vector endpos The end of the TraceLine as a Vector.
Table plane Contains the information about the plane you hit.
Number fraction How far the trace went before hitting something. 0-1, 1.0 means it didn't hit anything.
Boolean allsolid If true, the plane is not valid. (You never left the solid you started in)
Boolean startsolid If true, the initial point was in a solid area.
Integer hitbox Returns the int of the hitbox hit.
Entity Entity The entity hit. Can be invalid.
Boolean DidHit Returns true if it hit something.