# how to get owner

**URL:** <https://forums.unrealengine.com/t/how-to-get-owner/94919>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [June 21, 2017, 9:33pm UTC](https://forums.unrealengine.com/t/how-to-get-owner/94919 "2017-06-21T21:33:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohannG49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohannG49](https://forums.unrealengine.com/u/JohannG49)\
**Post date:** [June 21, 2017, 9:33pm UTC](https://forums.unrealengine.com/t/how-to-get-owner/94919/1 "2017-06-21T21:33:04Z")

</div>

i wanted to modify the CanUse of a PrimalItemStrucure by seeing if the owner is in tribe or not

with get last Owner it seems to works only for the host of the server but not for others on the server

how can i get the owner of the PrimalItemStructure in the inventory ?

---

<div class="post-metadata">

**Author:** ![McBane87](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@McBane87](https://forums.unrealengine.com/u/McBane87)\
**Post date:** [June 22, 2017, 1:22pm UTC](https://forums.unrealengine.com/t/how-to-get-owner/94919/2 "2017-06-22T13:22:14Z")

</div>

Try to compare the “Targeting Team” values of the Structure and the Player.

---

<div class="post-metadata">

**Author:** ![JohannG49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohannG49](https://forums.unrealengine.com/u/JohannG49)\
**Post date:** [June 22, 2017, 4:23pm UTC](https://forums.unrealengine.com/t/how-to-get-owner/94919/3 "2017-06-22T16:23:07Z")

</div>

that the thing i’m not testing the structure, i’m testint the primalItem in inventory so the structure doesn’t exist yet

---

<div class="post-metadata">

**Author:** ![P0k3r](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@P0k3r](https://forums.unrealengine.com/u/P0k3r)\
**Post date:** [June 22, 2017, 10:24pm UTC](https://forums.unrealengine.com/t/how-to-get-owner/94919/4 "2017-06-22T22:24:06Z")

</div>

Same way they do it for the scuba gear and tek stuff:

 ![Owner.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/0/101c6708e4152b606e981d64c415b0358d6ef1a6.png)

---

<div class="post-metadata">

**Author:** ![JohannG49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohannG49](https://forums.unrealengine.com/u/JohannG49)\
**Post date:** [June 23, 2017, 3:02pm UTC](https://forums.unrealengine.com/t/how-to-get-owner/94919/5 "2017-06-23T15:02:08Z")

</div>

yeah I did that but after that the cast to Primal Character fail.

What I did… (I’ll add screen when editor will lunch)  
In the PrimalItem :  
Event BPCrafted → Set Self Obj (Reference to Self)

BPCanUse → Get Self Obj → Owner Inventory → Get Owner → Cast To Primal Character → Get Tribe Name → Not Equal String “” → Boolean in BPCan Use node exit

and that only works for the host of the server, for others the cast seems to fail

---

<div class="post-metadata">

**Author:** ![P0k3r](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@P0k3r](https://forums.unrealengine.com/u/P0k3r)\
**Post date:** [June 23, 2017, 4:17pm UTC](https://forums.unrealengine.com/t/how-to-get-owner/94919/6 "2017-06-23T16:17:20Z")

</div>

AFAIK, primalitems do not store data like actors do so try adding the set selfobj at the beginning of your canuse function instead of in the bpcrafted

IE: BPCanUse → Set SelfObj (ref to self) → Get Self Obj → Owner Inventory → Get Owner → Cast To Primal Character → Get Tribe Name → Not Equal String “” → Boolean in BPCan Use node exit

---

<div class="post-metadata">

**Author:** ![dreyn74](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dreyn74](https://forums.unrealengine.com/u/dreyn74)\
**Post date:** [June 25, 2017, 3:06pm UTC](https://forums.unrealengine.com/t/how-to-get-owner/94919/7 "2017-06-25T15:06:08Z")

</div>

> [@](#):
>
> AFAIK, primalitems do not store data like actors

The dev kit patch notes say otherwise.

> [@](#):
>
> 5/9:  
> The ARK Dev Kit v257.45 has been posted to the Epic Launcher!
> 
> This version has major functional additions useful for Mods, including PrimalItem “CustomItemDatas” finally fully working, with save and load support.

---

<div class="post-metadata">

**Author:** ![P0k3r](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@P0k3r](https://forums.unrealengine.com/u/P0k3r)\
**Post date:** [June 26, 2017, 4:06am UTC](https://forums.unrealengine.com/t/how-to-get-owner/94919/8 "2017-06-26T04:06:22Z")

</div>

> [@dreyn74;728238](#):
>
> The dev kit patch notes say otherwise.

Like I read all the patchnotes lol. Plus I did say AFAIK 😉  
But still, that would be what I would try next

---

<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:34pm UTC](https://forums.unrealengine.com/t/how-to-get-owner/94919/9 "2022-03-09T21:34:33Z")

</div>


