Skip to content

TE_KILLPLAYERATTACHMENTS

wootguy edited this page Nov 29, 2025 · 3 revisions

Removes attachments created with TE_PLAYERATTACHMENT from the target player.

Parameters

Type Name Description
CBasePlayer@ target Player to remove attachements from

Example Usage

void te_killplayerattachments(CBasePlayer@ plr, 
    int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
    MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
    WRITE_BYTE(TE_KILLPLAYERATTACHMENTS);
    WRITE_BYTE(plr->entindex());
    MESSAGE_END();
}

Clone this wiki locally