How to use using { /Fortnite.com/FortPlayerUtilities }

I need to check who is in spectator mode and respawn them.
I don’t understand how to use FortPlayerUtilities.

Here you go

for(Player : GetPlayspace().GetPlayers(), Player.IsSpectator[]):
    # Call your respawn method on Player
1 Like

What should I read to understand this. I would have never figure it out by myself.
What knowledge am I missing. Is it somekind of lambda?

1 Like

It’s a for filter, basically we’re iterating over all the Players in the playspace (in the session) and checking if they are a spectator or not

The GetPlayspace().GetPlayers() method is almost used on every tutorials

1 Like

Thank you very much! I should have jumped into tutorials instead of trying to figure it out on my own. I really appreciate your time and help.

1 Like