well here is the code
<>
using {/Fortnite.com/Devices}
using {/Fortnite.com/UI}
using {/Fortnite.com/Game}
using {/Fortnite.com/Characters}
using {/Fortnite.com/Playspaces}
using {/Verse.org/Simulation}
using {/Verse.org/Random}
using {/UnrealEngine.com/Temporary/Diagnostics}
using {/UnrealEngine.com/Temporary/UI}
using {/UnrealEngine.com/Temporary/SpatialMath}
game_manger := class(creative_device):
@editable
CardDetector:conditional_button_device = conditional_button_device{}
@editable
CondButton:conditional_button_device = conditional_button_device{}
OnBegin<override>()<suspends>:void= #<-- here is the error
CondButton.ActivatedEvent.Subscribe(OnButtonActivated)
PlayerSpawner.SpawnedEvent.Subscribe(OnPlayerSpawned)
MoreDevices()
spawn:
CheckForCard()
CheckForCard():void=
Sleep(1.0)
AllPlayers:=GetPlaySpace().GetPlayers()
for(Player:AllPlayers):
if(IsAgent:agent = agent[Player]):
if(CardDetector.IsHoldingItem[IsAgent]):
MakePlayerInvisible(IsAgent)
else:
ShowPlayer(IsAgent)
ShowPlayer(Agent:agent):void=
if(FC:=Agent.GetFortCharacter):
FC.Show()
MakePlayerInvisible(Agent:agent):void=
if(FC:=Agent.GetFortCharacter):
FC.Hide()
</>