# Need Help with object referencing different BP

**URL:** <https://forums.unrealengine.com/t/need-help-with-object-referencing-different-bp/91325>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [May 4, 2017, 6:37am UTC](https://forums.unrealengine.com/t/need-help-with-object-referencing-different-bp/91325 "2017-05-04T06:37:43Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![DefaultCoder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DefaultCoder](https://forums.unrealengine.com/u/DefaultCoder)\
**Post date:** [May 4, 2017, 6:37am UTC](https://forums.unrealengine.com/t/need-help-with-object-referencing-different-bp/91325/1 "2017-05-04T06:37:43Z")

</div>

Hi All,

```
  I have a custom resource and I am to reference the resource BP to the actual structure that is crafting it over time.. however I can not get the variable to propagate into the structure's BP. I have tried:

```

1. Adding Objects as a variable as stated in direct blueprint communication UE4 Documentation to no avail.
2. I have tried calling functions from within the Resource BP, still not propagating the variable.
3. I have even tried referencing the Class of the BP and yet still nothing.

Here is what I have:  
[screenshot]

 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/8/384a58d813fd61620dfe414bfce440e5ecf358a6.png)&stc=1&d=1493879392[/screenshot]

If anyone could point me in the right direction that would be great. AS a caveat I am trying to get the reference Blueprint Time To Craft variable from the resource BP and use it to add custom INI valuation to it. Any help would be greatly Appreciated! Thank you!

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [May 4, 2017, 8:44pm UTC](https://forums.unrealengine.com/t/need-help-with-object-referencing-different-bp/91325/2 "2017-05-04T20:44:24Z")

</div>

It’s not working because you’re not changing it. You’re setting it to itself. After the second branch, setting the object’s Blueprint Time To Craft should be set to the Float option, not to its original time to craft.

---

<div class="post-metadata">

**Author:** ![DefaultCoder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DefaultCoder](https://forums.unrealengine.com/u/DefaultCoder)\
**Post date:** [May 5, 2017, 6:44am UTC](https://forums.unrealengine.com/t/need-help-with-object-referencing-different-bp/91325/3 "2017-05-05T06:44:20Z")

</div>

> [@Huston850;704368](#):
>
> It’s not working because you’re not changing it. You’re setting it to itself. After the second branch, setting the object’s Blueprint Time To Craft should be set to the Float option, not to its original time to craft.

So Something Like this…

[screenshot]

 ![Capture1.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/5/05db2db2455bca51852968596dae6ed6c51e73eb.png)&d=1493966466[/screenshot]

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [May 5, 2017, 8:45pm UTC](https://forums.unrealengine.com/t/need-help-with-object-referencing-different-bp/91325/4 "2017-05-05T20:45:49Z")

</div>

Now you have it backwards. You have to Get Float Option \> Set Variable \> Set Time To Craft. Alternatively, right after checking that the float option is \>0, you could immediately set the object’s time to craft with it. In the first picture, all you had to do was take the green dot from “set blueprint time to craft” and connect it to “get float option”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_01117074](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_01117074](https://forums.unrealengine.com/u/anonymous_user_01117074)\
**Post date:** [May 6, 2017, 4:04pm UTC](https://forums.unrealengine.com/t/need-help-with-object-referencing-different-bp/91325/5 "2017-05-06T16:04:48Z")

</div>

I just made a copy of the oil pump and his inventory. Changed the Mesh and the produced item in time. And done 😃

i dont know its the same you want. But if you just want a structure producing an specific item or resource over time, this is whats works well for me 🙂

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [May 6, 2017, 6:18pm UTC](https://forums.unrealengine.com/t/need-help-with-object-referencing-different-bp/91325/6 "2017-05-06T18:18:40Z")

</div>

He wants the over time production to be adjustable via .ini

---

<div class="post-metadata">

**Author:** ![DefaultCoder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DefaultCoder](https://forums.unrealengine.com/u/DefaultCoder)\
**Post date:** [May 7, 2017, 12:17am UTC](https://forums.unrealengine.com/t/need-help-with-object-referencing-different-bp/91325/7 "2017-05-07T00:17:53Z")

</div>

@CalvinVail  
I already did that without having to copy the inventory… although sounds alot easier than the approach i took. 🙂

@Huston850  
Could you possibly show me which one as I am confused about the graphing… I am able to retrieve the original value however I am not able to set it regardless if its client/server or dedicated. Your help is greatly appreciated.

EDIT: Fixed Typos

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [May 7, 2017, 10:12am UTC](https://forums.unrealengine.com/t/need-help-with-object-referencing-different-bp/91325/8 "2017-05-07T10:12:03Z")

</div>

> [@DefaultCoder;705402](#):
>
> @CalvinVail  
> I already did that without having to copy the inventory… although sounds alot easier than the approach i took. 🙂
> 
> @Huston850  
> Could you possibly show me which one as I am confused about the graphing… I am able to retrieve the original value however I am not able to set it regardless if its client/server or dedicated. Your help is greatly appreciated.
> 
> EDIT: Fixed Typos

From PrimalItemResource, drag out “Set Blueprint Time To Craft” and just put the Get Float Option and Branches between the two.

---

<div class="post-metadata">

**Author:** ![DefaultCoder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DefaultCoder](https://forums.unrealengine.com/u/DefaultCoder)\
**Post date:** [May 7, 2017, 9:08pm UTC](https://forums.unrealengine.com/t/need-help-with-object-referencing-different-bp/91325/9 "2017-05-07T21:08:29Z")

</div>

OK so I took the original graph and made it as you suggested and I still get variable out of scope/failed to get variable property. After many failed attempts to inherit the value through direct blueprint communication and casting it still wont read the value to implement its change via the graph. Any other thoughts would be greatly appreciated. Thanks again for all your @Huston850 help.

---

<div class="post-metadata">

**Author:** ![Huston850](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Huston850](https://forums.unrealengine.com/u/Huston850)\
**Post date:** [May 8, 2017, 8:56pm UTC](https://forums.unrealengine.com/t/need-help-with-object-referencing-different-bp/91325/10 "2017-05-08T20:56:52Z")

</div>

Can I see your get float option logic? The shootergamemode has to be casted to server side. When I get home from work tomorrow I’ll open up my dev kit.

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 9, 2022, 9:19pm UTC](https://forums.unrealengine.com/t/need-help-with-object-referencing-different-bp/91325/11 "2022-03-09T21:19:57Z")

</div>


