ChangedBadgeVisibility
Gets called when the player has changed their global or local badge visibility.
Start a script section
!-- OnEvent ChangedBadgeVisibility
-- require @evPlayer $evIsGlobalBadge $evNewVisibility
# Add your instructions here
- Group: PlayerEvents
- Cancellable: No
- Event data:
PlayerChangedBadgeVisibilityEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | The player that changed 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 is now visible. |