# Detecting if creature is in water, increase one of its stats

**URL:** <https://forums.unrealengine.com/t/detecting-if-creature-is-in-water-increase-one-of-its-stats/64137>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [May 18, 2016, 4:45am UTC](https://forums.unrealengine.com/t/detecting-if-creature-is-in-water-increase-one-of-its-stats/64137 "2016-05-18T04:45:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_f68c18c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f68c18c1](https://forums.unrealengine.com/u/anonymous_user_f68c18c1)\
**Post date:** [May 18, 2016, 4:45am UTC](https://forums.unrealengine.com/t/detecting-if-creature-is-in-water-increase-one-of-its-stats/64137/1 "2016-05-18T04:45:04Z")

</div>

Hi, I’m adding a filter feeder to the game that eats plankton and other similar organic material. It is unfeedable via traditional methods such as meat or berries. To account for this, I have given it a high food stat that goes down slowly so that it can survive outside of water areas for a long time. Eventually players will need to “feed” it, so I want to make it so that its food stat replenishes when it is in water. My problem is that I am quite unsure of how to go about this. Any insight would be greatly appreciated!

Also, as a second, smaller question: is there a way to affect a creature’s ability to be grappled without adjusting the “mass” variable?

Thank you for your time!

---

<div class="post-metadata">

**Author:** ![Nanobot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nanobot](https://forums.unrealengine.com/u/Nanobot)\
**Post date:** [May 23, 2016, 2:33pm UTC](https://forums.unrealengine.com/t/detecting-if-creature-is-in-water-increase-one-of-its-stats/64137/2 "2016-05-23T14:33:43Z")

</div>

You could just make a trigger volume for each area of plankton that increases creatures “food stat.” Or have the game check if the creature is currently in the water physics volume. You might try to see how filling the water bottles work.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f68c18c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f68c18c1](https://forums.unrealengine.com/u/anonymous_user_f68c18c1)\
**Post date:** [May 25, 2016, 3:42am UTC](https://forums.unrealengine.com/t/detecting-if-creature-is-in-water-increase-one-of-its-stats/64137/3 "2016-05-25T03:42:56Z")

</div>

> [@Nanobot;534753](#):
>
> You could just make a trigger volume for each area of plankton that increases creatures “food stat.” Or have the game check if the creature is currently in the water physics volume. You might try to see how filling the water bottles work.

I am not sure how to check if the creature is in the water physics volume.

For water bottles, their water content is considered “durability” as if it was a tool. They are filled by a tag in their blueprint which allows them to repair durability at water sources. This, unfortunately, does not apply to any creature tags.

---

<div class="post-metadata">

**Author:** ![WoefulMacabre](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WoefulMacabre](https://forums.unrealengine.com/u/WoefulMacabre)\
**Post date:** [May 25, 2016, 3:55am UTC](https://forums.unrealengine.com/t/detecting-if-creature-is-in-water-increase-one-of-its-stats/64137/4 "2016-05-25T03:55:37Z")

</div>

> [@gardejor;535760](#):
>
> I am not sure how to check if the creature is in the water physics volume.

Taken from an answerhub post:

> [@](#):
>
> A very simple way of doing this if your character has a CharacterMovementComponent is to check it’s movement mode - if it’s “Swimming”, you can be fairly sure you’re inside a water volume.

-WM

---

<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/detecting-if-creature-is-in-water-increase-one-of-its-stats/64137/5 "2022-03-09T21:34:45Z")

</div>


