OnEntityCreation Hook

Description

When the entity gets created
HookReturnCode OnEntityCreation(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::OnEntityCreation.Hook( @OnEntityCreation );