Index  

trap_LinkEntity

Description

Link an entity into the world.

Prototype

    void trap_LinkEntity(
        gentity_t *ent
    );

Parameters

Remarks

An entity will never be sent to a client or used for collision if it is not passed to linkentity.
If the size, position, or solidity changes, it must be relinked.

When an entity is "linked" it is subject to all evaluations that the world performs on it.
It enables collision detection for an with the entity (interacts with others).
It also activates PVS data for entity (it sees others, others see it).
For example, all linked entities are accounted for when performing a trace.
Newly created entities are not linked into the world - they must be explcitly linked using this call.
Linking an entity that is already linked into the world has no effect unless the following properties have changed:

Return value

This function has no return value.

See also

trap_UnlinkEntity

Author(s)

Timbo


QuakeIII trap calls reference