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โ
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is flipping the coin. |
*evCoinItem | reference to CoinItem object | Gets the coin item that is going to be flipped. |
$evIsTails | bool value | Gets whenever the coin flip is tails. |
$evIsAllowed | bool value | Whether the event is allowed to run. |