OnEntityDestruction Hook

Description

When the entity gets destroyed
HookReturnCode OnEntityDestruction(const string& in szClassname, CBaseEntity@ pEntity)

Parameters

const string& in szClassname

The classname of the entity

CBaseEntity@ pEntity

The entity handle

Hook Register

Events::Entities::OnEntityDestruction.Hook( @OnEntityDestruction );