Hey there!
In my code I’ve attached a player_counter_device
to check if there is for example just 1 player in a specific area of the map. So now I wanted to make an if statement that if the Count succeeds something happens, but I have no idea how to make such an if statement.
Here’s what I’ve tried
OnBegin<override>()<suspends>:void=
GameStart.TriggeredEvent.Subscribe(RoundStart)
RoundStart(Agent : ?agent) : void =
CheckIf1Player.CompareToTarget()
if (CheckIf1Player.CountSucceedsEvent):
StatusPlaying.Show()
StatusStopped.Hide()
ChooseRandomSong()
spawn {ChooseRandomDuration()}
Greetings!