Skip to content

TE_KILLPLAYERATTACHMENTS

GeckoN edited this page Jan 31, 2017 · 3 revisions

Removes attachments created with TE_PLAYERATTACHMENT from the target player.

Parameters

Type Name Description
CBasePlayer@ target Player to remove attachements from

API Function

No API function exists as of SC 5.02

NetworkMessage Function

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();
}
Clone this wiki locally