Index  

trap_PointContents

Description

Get point contents against all linked entities.

Prototype

    int trap_PointContents(
        const vec3_t point,
        int passEntityNum
    );

Parameters

Remarks

This trap call returns the CONTENTS_* of a specific point in space - it is commonly used to avoid spawning items in CONTENTS_NODROP areas.
The second parameter specifies an entityNum (ent->s.number) which is ignored when evaluating the contents for a point.

Return value

Returns a combinaison of values defined in surfaceflags.h.

See also

Author(s)

Timbo


QuakeIII trap calls reference