Array Variable not in Scope

I am having trouble with a not in scope issue, I have a button which i want to set an ID Ref, it gets the reference fine and the array but as soon as I do a get it says its not in scope.

My Call -


The array -

is getting the id ref value-

Not in scope issue -

Any help would be appreciated

It’s probably because you are temporarily accessing the data from within the function.

Once the function nears it’s end all variables extracted and used within the function to drive data (if not promoted to a a variable) get purged.

Just like in c++ when things go out of scope the local variables cease to exist.

Debugging in BP is pretty bare bones.

Perfect i will try and assign it to a variable and see if that works, thank you.

So the issue wasnt the array get it was what i was trying to set, got around it by using my savegame rather than a text field which makes more sense. Thank you for making me see my error lol

Guess I took the role of a rubber duck in this case :wink:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.