The only other change I made was changing the Actor Class of the Get All Actors Of Class. So, instead of EsneItem (which was the original class (a c++ class)), I had BP_Coin (which is a blueprint that has EsneItem as a parent)
The idea was to ONLY search for BP_Coin in the level instead of searching for all the items, because I only really needed the coins for this work.
Basically this is what I did:
-
Changed Actor Class of Get All Actors of Class from EsneItem to BP_Coin (which inherits from EsneItem)
-
Removed the Cast To node
-
Realized I still needed the casting
-
CTRL-Z’d until it was back.
-
The error in my second image happened.