Download

how to get owner

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 ?

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

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

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

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

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

The dev kit patch notes say otherwise.

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