# How can I have my enemey character check for holes in the ground?

**URL:** <https://forums.unrealengine.com/t/how-can-i-have-my-enemey-character-check-for-holes-in-the-ground/291823>\
**Category:** Character & Animation\
**Tags:** check, unreal-engine, UE4, question, Blueprint\
**Created:** [August 23, 2014, 9:08pm UTC](https://forums.unrealengine.com/t/how-can-i-have-my-enemey-character-check-for-holes-in-the-ground/291823 "2014-08-23T21:08:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zip](https://forums.unrealengine.com/u/zip)\
**Post date:** [August 23, 2014, 9:08pm UTC](https://forums.unrealengine.com/t/how-can-i-have-my-enemey-character-check-for-holes-in-the-ground/291823/1 "2014-08-23T21:08:08Z")

</div>

Hi to all, i have try do 2d side scroller and i have enemy character blueprint , it moving from start level to end(in Event tick with add movement input) , but when level is ending(or ground have holes ) my enemy falls from level, so i need some how check on this holes, and if i find hole do my stuf, how i can do this with blueprint? thx

---

<div class="post-metadata">

**Author:** ![Roel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roel](https://forums.unrealengine.com/u/Roel)\
**Post date:** [August 23, 2014, 9:24pm UTC](https://forums.unrealengine.com/t/how-can-i-have-my-enemey-character-check-for-holes-in-the-ground/291823/2 "2014-08-23T21:24:49Z")

</div>

If you want to do something like death you could use a trigger volume and on entering the trigger doing something. Same for the end of the level, make a trigger that tells the game loop you finished the map.

---

<div class="post-metadata">

**Author:** ![zip](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zip](https://forums.unrealengine.com/u/zip)\
**Post date:** [August 25, 2014, 7:39am UTC](https://forums.unrealengine.com/t/how-can-i-have-my-enemey-character-check-for-holes-in-the-ground/291823/3 "2014-08-25T07:39:54Z")

</div>

thx for reply, i want do dynamically changing directional of move for my enemy character blueprint(it can moving automatically on platform left\right(x vector)), that mean i need some how check if platform is ending(or has a holes) and then change moving directional on other side.

---

<div class="post-metadata">

**Author:** ![Roel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Roel](https://forums.unrealengine.com/u/Roel)\
**Post date:** [August 26, 2014, 2:11pm UTC](https://forums.unrealengine.com/t/how-can-i-have-my-enemey-character-check-for-holes-in-the-ground/291823/4 "2014-08-26T14:11:51Z")

</div>

Just do a line trace down slightly in front of the enemy character. The distance of the lincast would be the maximum distance it can fall down. If it does not hit anything, turn it around.
