Index  

trap_AdjustAreaPortalState

Description

Adjusts the state of a portal connecting two areas.

Prototype

    void trap_AdjustAreaPortalState(
        gentity_t *ent,
        qboolean open
    );

Parameters

ent : Entity to adjust.
open : State to adjust to.

Remarks

Set "open" to true to allow visibility through the portal and false to block visibility.
This is normally used to adjust visibility when opening and closing doors.
When the door is open; "open" is set true and entities are visible through the door, when the door is closed; "open" is set false and trap_InPVS will not see entities through the door.
See Use_BinaryMover in the game source for an example.

Return value

This function has no return value.

See also

Author(s)

FonFon


QuakeIII trap calls reference