Skip to content

TE_KILLBEAM

wootguy edited this page Nov 29, 2025 · 3 revisions

Kills all beams attached to the target entity.

Parameters

Type Name Description
CBaseEntity* target Entity to remove beams from

Example Usage

void te_killbeam(CBaseEntity* target, 
    int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
    MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
    WRITE_BYTE(TE_KILLBEAM);
    WRITE_SHORT(target->entindex());
    MESSAGE_END();
}

Clone this wiki locally