Hook when a player picks up a deployable...?Solved

I'd like to log when a player picks up a deployable but not stuff dropped on the floor - would `OnEntityPickup(Item entity, BasePlayer initiator)` suit my needs, and if so how do I get ShortPrefabName off of item? I tried:

    string prefab = entity.ShortPrefabName;



And:

    string prefab = entity.ToBaseEntity().ShortPrefabName;

But no joy.

Thanks in advance.

 

Actually, this looks like it would be a better fit from its description in the docs, but doesn't seem to trigger when I pick something up with the hammer:

		void CanPickupEntity(BaseCombatEntity entity, BasePlayer initiator) {

			Puts("In CanPickupEntity");

		}​
Locked automatically