Skip to content

OnBigWheelLoss ​

Usage ​

  • Return a non-null value to override default behavior

Example Autogenerated ​

csharp
private object OnBigWheelLoss( BigWheelGame instance, Item slot2, BigWheelBettingTerminal terminal )
{
    Puts( "OnBigWheelLoss works!" );
    return null;
}

Location ​

  • BigWheelGame::Payout()
csharp
//---
			}
		}
		for (int i = 0; i < 5; i++)
		{
			Item slot2 = terminal.inventory.GetSlot(i);
			if (slot2 != null && Interface.CallHook("OnBigWheelLoss", this, slot2, terminal) == null)
			{
				Facepunch.Rust.Analytics.Azure.OnGamblingResult(terminal.lastPlayer, terminal, slot2.amount, 0, value);
				slot2.Remove();
				flag2 = true;
			}
//---

Released under the MIT License.