Skip to main content

FlippingCoin

Gets called when the player is flipping a coin.

Start a script sectionโ€‹

!-- OnEvent FlippingCoin
-- require @evPlayer *evCoinItem $evIsTails $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerFlippingCoinEventArgs

Injected variablesโ€‹

VariableTypeDescription
@evPlayerplayer valueGets the player who is flipping the coin.
*evCoinItemreference to CoinItem objectGets the coin item that is going to be flipped.
$evIsTailsbool valueGets whenever the coin flip is tails.
$evIsAllowedbool valueWhether the event is allowed to run.

Validated examples using this eventโ€‹