Goodday!
From this code:
I got this error:
Blueprint Runtime Error: “Accessed None trying to read property CallFunc_Array_Get_Item_1”. Blueprint: DVD_BP Function: Execute Ubergraph DVD BP Graph: EventGraph Node: Branch
Goodday!
From this code:
I got this error:
Blueprint Runtime Error: “Accessed None trying to read property CallFunc_Array_Get_Item_1”. Blueprint: DVD_BP Function: Execute Ubergraph DVD BP Graph: EventGraph Node: Branch
Hi Doeglas,
It could mean that there are no CD_BP actors found when calling the “GetAllActorsOfClass” - it sounds like the array of actors is empty.
Rather than just look at the first item in the array, you can add a check to see if the array “Length” is greater than 0. Or you could use a “ForEach” on the array and check each one (that does a check if it’s empty).
And this is the easiest way to get a variable from another bp?
It is the easiest, but not the fastest - the fastest would be to store a reference to the actor you’re wanting in the overlapping actor.
Alright, I’ll see if I can work it out but I’m pretty new to UE4 and still in the learning process so there will be a chance that I have no idea how to do any you just explained.
Just holler if you need a hand…
I got it working. Thank you!