also the guy in the tutorial is using 5.3 while I’m on 5.8 (The computer I am using doesn’t allow for the version to be changed for whatever reason)
- We can’t see enough of the graph to see anything that uses your map variable.
- You don’t have the execution line connected from the ForEach loop body so you may have lots of logic that is getting trimmed and excluded causing errors.
Seems you’re using the wrong flavor of != node there. When you drag wire off enum and start searcing = in context box, look for one called “Not Equal (enum).” Teh vanilla != uses the raw integer byte index of the enumerator. In theory it should still work, but blueprint compiler gets confused sometimes when randomly converting enums to int unless you explicitly call a To Integer node.
create variable type ETeamEnum and then set type of it not as single or array but as a Map and set key type ETeam and value Integer
that error happens because map variables with enum keys default to NewEnumerator0 which isnt valid until you wire it.
on the graph that uses Team Player Count Map, right click → Make Map. it creates a MakeMap node with your c ETeam->Int type. add entries for each team (like Red 0, Blue 0), then connect its output Map pin to the Map input pin of the node that complains. that replaces the invalid default.
also check your ForEach loop — one reply noticed the exec pin isnt connected so the map never feeds into logic. connect Body exec to whatever consumes the map.
