Skip to content

TE_SHOWLINE

wootguy edited this page Nov 29, 2025 · 4 revisions

Draws a red dotted line between two points that disappears after 30 seconds. Uses fewer dots than TE_LINE.

Parameters

Type Name Description
Vector start Starting point for the line
Vector end End point for the line

Example Usage

void te_showline(Vector start, Vector end, RGBA c=PURPLE,
    int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
    MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
    WRITE_BYTE(TE_SHOWLINE);
    WRITE_COORD(start.x);
    WRITE_COORD(start.y);
    WRITE_COORD(start.z);
    WRITE_COORD(end.x);
    WRITE_COORD(end.y);
    WRITE_COORD(end.z);
    MESSAGE_END();
}

Clone this wiki locally