Skip to content

OnRackedWeaponTaken

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnRackedWeaponTaken( Item slot, BasePlayer player, WeaponRack instance )
{
    Puts( "OnRackedWeaponTaken works!" );
}

Location

  • WeaponRack::GivePlayerWeapon(BasePlayer player, int mountSlotIndex, int playerBeltIndex, bool tryHold, bool sendUpdate)
csharp
//---
	if (sendUpdate)
	{
		ItemManager.DoRemoves();
		base.SendNetworkUpdateImmediate(false);
	}
	Interface.CallHook("OnRackedWeaponTaken", slot, player, this);
}

Released under the MIT License.