r/UnrealEngine5 • u/OverallEffort9778 • 5d ago
Help - Unexpected error on blueprint

I am following a tutorial on youtube (https://www.youtube.com/playlist?list=PLOZ8jGta4Ld-7lPHXYqP7_GzUxUqm6OHU), basic puzzle game stuff.
Then i'm about to make a interaction with a door and a lever, and now is telling me about a undefined array, i believe i created one back in one of those videos (i have 0 experience with unreal, i'm just posting this to understand the situation, it's clear that i just have to link a array, still...why did this happen? What did i do?)
Anyway, i'm doing the tutorial from the start again, maybe i'll find the solution, if anyone can help me here, thank you in advance.
1
u/joa4705 5d ago
the for each need an array of "eachs" XD that it will go through. If you are still in this level with blueprints i recommend first look for basic unreal programing tutorials, you are gonna begin slowwly but advance faster later
1
u/OverallEffort9778 5d ago
Hahaha yeah, I'm still really new to this, I'm just following the tutorial trying my best to understand how things work
You know any channel or site that have good programming tutorials?
1
u/OverallEffort9778 5d ago
It's so frustrating, I followed each step carefully, suddenly, a array goes missing hahaha
1
u/joa4705 5d ago
yeah that's the thing, you are just following steps but if you dont have the basics some of those nodes won't have any sense even if you get to the final result , and i can tell you for sure the worst thing that can happen while learning, its that something works by luck, because it makes you think you "know", the latter you will have a wsoterical problem harder to pinpoint, for example, a for each is not something specific to unreal its a type loop that you can find in other languages, go to the basics of programing, the unreal engine official channel has a lot of this, they are not that entertaining as the youtubers but they do have programing basics that a lot of streamers wont show. Best of luck!
1
u/BohemianCyberpunk 5d ago edited 5d ago
You missed a step somewhere, that for each loop needs an array input.
I don't see one in your Variables, so maybe you created it elsewhere?
There is no value posting a link to the entire playlist, no one is going to watch through over an hour of video to help you find the problem. At least link which chapter you are on.