using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Fortnite.com/Characters }
button_show_hide_device := class(creative_device):
@editable
ShowButtonDevice:button_device = button_device{}
@editable
HideButtonDevice:button_device = button_device{}
OnBegin<override>()<suspends>:void=
ShowButtonDevice.InteractedWithEvent.Subscribe(OnInteractShow)
HideButtonDevice.InteractedWithEvent.Subscribe(OnInteractHide)
OnInteractShow(Agent:agent):void=
if(FortCharacter := Agent.GetFortCharacter[]):
FortCharacter.Show()
OnInteractHide(Agent:agent):void=
if(FortCharacter := Agent.GetFortCharacter[]):
FortCharacter.Hide()