OnItemPickup
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnItemPickup( Item item, BasePlayer player )
{
Puts( "OnItemPickup works!" );
}
Location
- WorldItem::Pickup(BaseEntity/RPCMessage msg)
csharp
//---
}
if (!this.allowPickup)
{
return;
}
if (Interface.CallHook("OnItemPickup", this.item, msg.player) != null)
{
return;
}
if (!this.CanOpenInSafeZone(msg.player))
{
//---