Hi all!
I recently started using blueprints in UE and I’m using some videotutorials to wrap up some ideas and functionalities with the purpose of learning an improving, but I’ve got a problem.
I’m trying to read the array length created from “Get All Actors Of Class” node and then put the array length into an integer variable, setting this way the new variable value.
The problem is that the variable doesn’t get updated, so even if i have 15 same actors in the map, the variable maintains the value of 0 instead of being set to 15…and I can’t understand why this is happening!
Where is the Construction script, perhaps it fires before everything else. Print text the length value and see what it says.
I just moved the nodes in the event graph after an “Event Begin Play” and then it works in the right way.
Probably the problem was really the fact that Construction Script fires before everything else, the thing is that in this videotutorial I’m viewing the guy just dropped those nodes there and for him no problem popped up. Maybe is something version-related?
Surely he was not working on 4.18…
It is quite likely, yeah!