So I made a map which contains a logic variable for each player and I want to check if all of their variables are set to true instead of checking individually, do you know how to do this.
For example:
if all variables of DidPlayerSurvive are true:
Print(“All variables are true”)
bDidTheySurvive(): logic=
for (Player: Self.GetPlayspace().GetPlayers()):
if (var bIsurvived: logic = DidPlayerSurvive[Player]):
if (bIsurvived = false):
return false
return true
If any played didn’t survive ‘All Survived’ is false, otherwise it’s true. My code assumes that all players are assigned DidPlayerSurvive, otherwise an unassigned player is just ignored.