OnEntityPickedUp Hook

Description

When the player successfully picks up an entity, which will return its classname.
It will also be called whenever the player presses a button, but it will return its name, instead of the classname. (If the button has no name, it will return with an empty string)
HookReturnCode OnEntityPickedUp(CHL2MP_Player@ pPlayer, const string& in skey)

Parameters

CHL2MP_Player@ pPlayer

The player that picked up the entity

const string& in skey

The special key provided from the entity

Hook Register

Events::Player::OnEntityPickedUp.Hook( @OnEntityPickedUp );