# No value will be returned by reference?

**URL:** <https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858>\
**Category:** Editor Scripting\
**Tags:** Networking, reference, parameter, unreal-engine, question\
**Created:** [August 6, 2015, 2:46pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858 "2015-08-06T14:46:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cmoritz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cmoritz](https://forums.unrealengine.com/u/Cmoritz)\
**Post date:** [August 6, 2015, 2:46pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/1 "2015-08-06T14:46:43Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Cmoritz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cmoritz](https://forums.unrealengine.com/u/Cmoritz)\
**Post date:** [August 6, 2015, 10:34pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/2 "2015-08-06T22:34:33Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [August 7, 2015, 2:27pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/3 "2015-08-07T14:27:05Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [August 10, 2015, 2:57pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/4 "2015-08-10T14:57:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![2rusbekov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@2rusbekov](https://forums.unrealengine.com/u/2rusbekov)\
**Post date:** [September 7, 2015, 4:32am UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/5 "2015-09-07T04:32:06Z")

</div>

Have same

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [September 8, 2015, 1:38pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/6 "2015-09-08T13:38:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Frozenfire](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frozenfire](https://forums.unrealengine.com/u/Frozenfire)\
**Post date:** [September 12, 2015, 4:39pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/7 "2015-09-12T16:39:24Z")

</div>

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](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/8/a18b8605ef659f0595cc6937a4eaf7beaba97a7a.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [September 14, 2015, 2:43pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/8 "2015-09-14T14:43:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Frozenfire](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frozenfire](https://forums.unrealengine.com/u/Frozenfire)\
**Post date:** [September 15, 2015, 5:15am UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/9 "2015-09-15T05:15:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![CriErr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CriErr](https://forums.unrealengine.com/u/CriErr)\
**Post date:** [September 16, 2015, 7:58pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/10 "2015-09-16T19:58:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [September 16, 2015, 8:54pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/11 "2015-09-16T20:54:56Z")

</div>

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](https://answers.unrealengine.com/questions/294737/49-arrays-are-broken-in-custom-events.html)

Make it a great day

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [October 9, 2015, 5:32am UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/12 "2015-10-09T05:32:02Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [October 9, 2015, 1:41pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/13 "2015-10-09T13:41:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [October 9, 2015, 4:37pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/14 "2015-10-09T16:37:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [October 9, 2015, 5:05pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/15 "2015-10-09T17:05:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MagicBots](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MagicBots](https://forums.unrealengine.com/u/MagicBots)\
**Post date:** [August 13, 2016, 2:08am UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/16 "2016-08-13T02:08:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TorQueMoD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/torquemod/32/710746_2.png) [@TorQueMoD](https://forums.unrealengine.com/u/TorQueMoD)\
**Post date:** [February 9, 2017, 6:25am UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/17 "2017-02-09T06:25:55Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [February 9, 2017, 1:55pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/18 "2017-02-09T13:55:17Z")

</div>

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)](https://issues.unrealengine.com/issue/UE-20613)

Make it a great day

---

<div class="post-metadata">

**Author:** ![DevDevy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DevDevy](https://forums.unrealengine.com/u/DevDevy)\
**Post date:** [June 27, 2017, 6:42pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/19 "2017-06-27T18:42:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yar3333](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yar3333](https://forums.unrealengine.com/u/yar3333)\
**Post date:** [January 7, 2019, 9:35pm UTC](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858/20 "2019-01-07T21:35:36Z")

</div>

I have same problem in 4.21.

[Next page](https://forums.unrealengine.com/t/no-value-will-be-returned-by-reference/327858.md?page=2)
