OnPlayerDropActiveItem
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnPlayerDropActiveItem( BasePlayer player, Item activeItem )
{
Puts( "OnPlayerDropActiveItem works!" );
}
Location
- PlayerBelt::DropActive(UnityEngine.Vector3 position, UnityEngine.Vector3 velocity)
csharp
//---
Item activeItem = this.player.GetActiveItem();
if (activeItem == null)
{
return;
}
if (Interface.CallHook("OnPlayerDropActiveItem", this.player, activeItem) != null)
{
return;
}
using (TimeWarning.New("PlayerBelt.DropActive", 0))
{
//---