Difference between revisions of "TE KILLPLAYERATTACHMENTS"

From Sven Co-op
Jump to navigation Jump to search
(Created page with "Removes attachments created with TE_PLAYERATTACHMENT from the target player. <pre> void te_killplayerattachments(CBasePlayer@ plr, NetworkMessageDest msgType=MSG_BROADCA...")
 
(No difference)

Latest revision as of 17:11, 31 May 2025

Removes attachments created with TE_PLAYERATTACHMENT from the target player.

void te_killplayerattachments(CBasePlayer@ plr, 
	NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
	NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
	m.WriteByte(TE_KILLPLAYERATTACHMENTS);
	m.WriteByte(plr.entindex());
	m.End();
}

CBasePlayer@ target Player to remove attachments from