Skip to content

OnMeleeThrown

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnMeleeThrown( BasePlayer player, Item item )
{
    Puts( "OnMeleeThrown works!" );
}

Location

  • BaseMelee::CLProject(BaseEntity/RPCMessage msg)
csharp
//---
		if (item.amount == 0)
		{
			item.SetParent(null);
		}
	}
	Interface.CallHook("OnMeleeThrown", player, item);
	SingletonComponent<NpcNoiseManager>.Instance.OnWeaponThrown(player, this, this.canAiHearIt);
}

Released under the MIT License.