# Make a resource damage you when it's in your inventory

**URL:** <https://forums.unrealengine.com/t/make-a-resource-damage-you-when-its-in-your-inventory/94526>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [June 16, 2017, 6:23am UTC](https://forums.unrealengine.com/t/make-a-resource-damage-you-when-its-in-your-inventory/94526 "2017-06-16T06:23:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamuelDassler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SamuelDassler](https://forums.unrealengine.com/u/SamuelDassler)\
**Post date:** [June 16, 2017, 6:23am UTC](https://forums.unrealengine.com/t/make-a-resource-damage-you-when-its-in-your-inventory/94526/1 "2017-06-16T06:23:00Z")

</div>

Hi. I have an idea for a mod where you can collect cinnabar ore.

Cinnabar is very toxic, so I’m wondering if there’s a way to make it so every second the resource actually damages you, just by being in your inventory.

Thanks

---

<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 16, 2017, 1:05pm UTC](https://forums.unrealengine.com/t/make-a-resource-damage-you-when-its-in-your-inventory/94526/2 "2017-06-16T13:05:48Z")

</div>

You can probably do it with a buff

---

<div class="post-metadata">

**Author:** ![SamuelDassler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SamuelDassler](https://forums.unrealengine.com/u/SamuelDassler)\
**Post date:** [June 16, 2017, 7:51pm UTC](https://forums.unrealengine.com/t/make-a-resource-damage-you-when-its-in-your-inventory/94526/3 "2017-06-16T19:51:42Z")

</div>

I found a field where it applies the buff on use, but I’d like the buff to be passive as long as the player is holding it.

Do you know how I can make that happen?

---

<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:** [June 16, 2017, 10:04pm UTC](https://forums.unrealengine.com/t/make-a-resource-damage-you-when-its-in-your-inventory/94526/4 "2017-06-16T22:04:06Z")

</div>

Give buff to owner maybe

---

<div class="post-metadata">

**Author:** ![SamuelDassler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SamuelDassler](https://forums.unrealengine.com/u/SamuelDassler)\
**Post date:** [June 16, 2017, 11:35pm UTC](https://forums.unrealengine.com/t/make-a-resource-damage-you-when-its-in-your-inventory/94526/5 "2017-06-16T23:35:47Z")

</div>

I’m pretty sure that only goes into effect if you use it

---

<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:** [June 17, 2017, 7:40am UTC](https://forums.unrealengine.com/t/make-a-resource-damage-you-when-its-in-your-inventory/94526/6 "2017-06-17T07:40:35Z")

</div>

That’s give buff on use.

---

<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 17, 2017, 7:07pm UTC](https://forums.unrealengine.com/t/make-a-resource-damage-you-when-its-in-your-inventory/94526/7 "2017-06-17T19:07:02Z")

</div>

“Buff to Give Owner Character” only fires when the item is actually used and only works for consumables.  
There are several graph nodes on primal items that may work.  
You can try BPPreUseItem, BPCanUse, BPCanAddToInventory and BlueprintOwnerPossessed.  
I know that BPCanUse continuously fires when you open the inventory and the item is visible in the inventory which probably is not what you’d want to use so try the others.  
BPCanAddToInventory sounds promising for what you are trying to achieve.  
Not exactly sure how you’d cancel the buff when it is removed from the inventory though. Maybe a looped timer on the buff itself checking to see if the item is in the players inventory or not?

---

<div class="post-metadata">

**Author:** ![duke54](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@duke54](https://forums.unrealengine.com/u/duke54)\
**Post date:** [June 17, 2017, 10:50pm UTC](https://forums.unrealengine.com/t/make-a-resource-damage-you-when-its-in-your-inventory/94526/8 "2017-06-17T22:50:49Z")

</div>

I got a pocket full of Kryptonite.

[![]( " - YouTube") ](https://www.youtube.com/watch?v=lKXr86h8Ww0)

---

<div class="post-metadata">

**Author:** ![SamuelDassler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SamuelDassler](https://forums.unrealengine.com/u/SamuelDassler)\
**Post date:** [June 18, 2017, 1:42am UTC](https://forums.unrealengine.com/t/make-a-resource-damage-you-when-its-in-your-inventory/94526/9 "2017-06-18T01:42:33Z")

</div>

> [@P0k3r;724975](#):
>
> BPCanAddToInventory sounds promising for what you are trying to achieve.  
> Not exactly sure how you’d cancel the buff when it is removed from the inventory though. Maybe a looped timer on the buff itself checking to see if the item is in the players inventory or not?

I have the BPCanAddtoInventory node but what do I attach it to in order to make it fire in the blueprint? I know how to use UE4, but I’m still figuring out how ark works.

---

<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 19, 2017, 1:48pm UTC](https://forums.unrealengine.com/t/make-a-resource-damage-you-when-its-in-your-inventory/94526/10 "2017-06-19T13:48:30Z")

</div>

There should be a checkbox in the defaults and you’ll want to use “Implement Function” as opposed to using the event.

---

<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/make-a-resource-damage-you-when-its-in-your-inventory/94526/11 "2022-03-09T21:34:33Z")

</div>


