# Dangling \`=\` assignment with no expressions or empty braced block \`{}\` on its right hand side.

**URL:** <https://forums.unrealengine.com/t/dangling-assignment-with-no-expressions-or-empty-braced-block-on-its-right-hand-side/1791441>\
**Category:** Verse\
**Tags:** error, bug, unreal-engine, unreal-editor-for-fortnite, crash, fortnite-creative, fortnite\
**Created:** [April 6, 2024, 9:05pm UTC](https://forums.unrealengine.com/t/dangling-assignment-with-no-expressions-or-empty-braced-block-on-its-right-hand-side/1791441 "2024-04-06T21:05:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrFusion1475](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mrfusion1475/32/919906_2.png) [@MrFusion1475](https://forums.unrealengine.com/u/MrFusion1475)\
**Post date:** [April 6, 2024, 9:05pm UTC](https://forums.unrealengine.com/t/dangling-assignment-with-no-expressions-or-empty-braced-block-on-its-right-hand-side/1791441/1 "2024-04-06T21:05:19Z")

</div>

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()  
\</\>
