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

NetworkMessage Function

void te_killbeam(CBaseEntity@ target, 
    NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
    NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
    m.WriteByte(TE_KILLBEAM);
    m.WriteShort(target.entindex());
    m.End();
}

Clone this wiki locally