I have an event node in my player class that executes on server and it takes an array parameter of a custom actor component class I created.
When using the event node, there is a note on the bottom of it that states: No Value will be returned by reference.
Does anyone know what would cause such a thing as well as a potential fix? The value itself sends nothing, I’ve checked with print strings and all.
We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.
Could you provide the information for the questions that were asked of Cmoritz? This information will help narrow down what issue it is that you are experiencing.
Hello I am facing similar issue. . I realized adding custom event with an input of integer array will cause this. It will also create spam log everytime it is run
LogScript:Warning: Attempted to get an item from array K2Node_CustomEvent_ButtonArray out of bounds [8/1]!
Could you provide the information for the questions that were asked of Cmoritz? This information will help narrow down what issue it is that you are experiencing.
Create custom event, add actor variable blue type(reference), make it array, compile.
I dont understand why is that warning happens, custom event know as “no value return”. Unless i don’t understand something or Someone screw up with implementation and QA team with testing.
After doing a bit more digging I found that this is a known issue (UE-20613) and it has been sent to the developers for further consideration. I have provided a link to the original thread. Please feel free to visit that link for future updates on this issue.
I went ahead and double checked on this issue for you, I found that this issue has bot been resolved as of yet. I will be sure to bump up the community interest in the report for this issue. you for your time and interest.
In case it helps anyone else who finds this thread: To create your own struct with blueprints, it’s right-click in content browser > blueprints > structure
So I’ve run into this issue when following the Setting Up Advanced AI stream with Ian Shadden and Meiszko Zielinski. In the tutorial they use the “On Perception Updated (AI Perception)” node and then drag out the Updated Actors array and run a For Each Loop from the array. Not sure how I could turn the On Perception Updated node into a custom structure.
Any chance this is going to be fixed soon?
Please use the original thread for future questions/concerns. This is for tracking purposes. I have provided a link to the public tracker. I hope this information helps.