No value will be returned by reference?

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.

Thanks!

It doesn’t have that strange note at the bottom of the node when it isn’t an array but if it is an array I get that warning. Any ideas?

Hello Cmoritz,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed set of steps to reproduce this issue on our end?
  3. Could you provide screen shots of the blueprints involved with this issue?

Hello Cmoritz,

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.

you.

Have same

1 Like

Hello 2rusbekov,

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]!

lots of this

58359-abc.jpg

Hello ,

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.

Let me try to reproduce it. Apparently I’m also getting it on non-array and non-integer.

Im getting this issue as well. Repro:

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.

Hello CriErr,

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.

Link: [4.9] Arrays are broken in custom events - Programming & Scripting - Epic Developer Community Forums

Make it a great day

Hi Rudy, any update on this? Do you have an idea how to workaround it if I can’t circumvent to send arrays to a server RPC?

Hello,

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.

Make it a great day

Hi Rudy, thanks. I have found using a struct with the arrays inside to be the easiest workaround, that works fine.

you for the suggested workaround. I am happy to hear that you that you can continue working.

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

1 Like

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?

Hello TorQueMoD,

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.

Link: Unreal Engine Issues and Bug Tracker (UE-20613)

Make it a great day

I am also having this issue, I’ve expanded on what was in the live stream. Error only appeared after upgrading to 4.16

I have same problem in 4.21.