Index  

trap_EntitiesInBox

Description

Get list of entities that have origins within the specified box.

Prototype

    int trap_EntitiesInBox(
        const vec3_t mins,
        const vec3_t maxs,
        int *list,
        int maxcount
    );

Parameters

mins : Defines the position of the corner of a cuboid.
maxs : Defines the position of the opposite corner of this cuboid.
list : A pointer to a list of entityNum's.
maxcount : The maximum number of entities to return.

Remarks

Return brush models based on their bounding box, so exact determination must still be done with EntityContact.
This fills an array of ints with the entity numbers (ent->s.number) of all the entities currently within the cuboid defined by mins and maxs.
This is useful because it runs native and is hence significantly cheaper than doing something similar in the QVM.

Return value

See also

Author(s)

Timbo


QuakeIII trap calls reference