Skip to content

CanDropActiveItem

Usage

  • Return a bool value to override default behavior

Example Autogenerated

csharp
private bool? CanDropActiveItem( BasePlayer instance )
{
    Puts( "CanDropActiveItem works!" );
    return null;
}

Location

  • BasePlayer::ShouldDropActiveItem()
csharp
public virtual bool ShouldDropActiveItem()
{
	object returnvar = Interface.CallHook("CanDropActiveItem", this);
	return !(returnvar is bool) || (bool)returnvar;
}

Released under the MIT License.