ChangingBadgeVisibility
Gets called when the player is changing their global or local badge visibility.
Start a script section
!-- OnEvent ChangingBadgeVisibility
-- require @evPlayer $evIsGlobalBadge $evNewVisibility $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerChangingBadgeVisibilityEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | The player that is changing their badge visibility. |
$evIsGlobalBadge | bool value | if the badge is a global badge, otherwise it is a local badge. |
$evNewVisibility | bool value | Whether the badge will be visible. |
$evIsAllowed | bool value | Whether the event is allowed to run. |