Skip to content

OnRackedWeaponMount

Usage

  • Return a bool value to override default behavior

Example Autogenerated

csharp
private bool? OnRackedWeaponMount( Item item, BasePlayer player, WeaponRack instance )
{
    Puts( "OnRackedWeaponMount works!" );
    return null;
}

Location

  • WeaponRack::MountWeapon(Item item, BasePlayer player, int gridCellIndex, int rotation, bool sendUpdate)
csharp
//---
	}
	if (player == null)
	{
		return false;
	}
	object obj = Interface.CallHook("OnRackedWeaponMount", item, player, this);
	if (obj != null)
	{
		if (!(obj is bool))
		{
			return false;
//---

Released under the MIT License.