Difference between revisions of "TE KILLBEAM"

From Sven Co-op
Jump to navigation Jump to search
(Created page with "Kills all beams attached to the target entity. <pre> void te_killbeam(CBaseEntity@ target, NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null) { NetworkMessage m(m...")
 
(No difference)

Latest revision as of 13:40, 14 April 2025

Kills all beams attached to the target entity.

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();
}

CBaseEntity@ target Entity to remove beams from