Skip to main content

FlippedCoin

Gets called when the player has flipped a coin.

Start a script sectionโ€‹

!-- OnEvent FlippedCoin
-- require @evPlayer *evCoinItem $evIsTails

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerFlippedCoinEventArgs

Injected variablesโ€‹

VariableTypeDescription
@evPlayerplayer valueThe player who flipped the coin.
*evCoinItemreference to CoinItem objectGets the coin item which was flipped.
$evIsTailsbool valueWhenever the coin flip is tails.

Validated examples using this eventโ€‹