# Node to check collision?

**URL:** <https://forums.unrealengine.com/t/node-to-check-collision/304676>\
**Category:** World Creation\
**Tags:** overlap, check, unreal-engine, Collision, nodes, Blueprint, question\
**Created:** [January 22, 2015, 10:31am UTC](https://forums.unrealengine.com/t/node-to-check-collision/304676 "2015-01-22T10:31:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheWTFage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheWTFage](https://forums.unrealengine.com/u/TheWTFage)\
**Post date:** [January 22, 2015, 10:31am UTC](https://forums.unrealengine.com/t/node-to-check-collision/304676/1 "2015-01-22T10:31:40Z")

</div>

I need a node that’ll allow me to run a check for whether anything is overlapping the box component of my pawn.  
Event Begin Overlap, and Event End Overlap are not working for my current purposes.  
I need to recieve a boolean value for whether there is a collision occuring when a check is run.  
Is this possible in Unreal Engine 4?

---

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [January 22, 2015, 10:55am UTC](https://forums.unrealengine.com/t/node-to-check-collision/304676/2 "2015-01-22T10:55:15Z")

</div>

Get your box component → **Get Overlapping Actors** and in ForEachLoop check if there are some elements, if yes set your boolean 🙂  
Or drag “Length” node from Get Overlapping Actors and check if it is \> 0.

---

<div class="post-metadata">

**Author:** ![TheWTFage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheWTFage](https://forums.unrealengine.com/u/TheWTFage)\
**Post date:** [January 22, 2015, 11:02am UTC](https://forums.unrealengine.com/t/node-to-check-collision/304676/3 "2015-01-22T11:02:49Z")

</div>

![27532-sdsdssd.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/0/06029577984993397d14b4444ca32feb74006ddd.png)

I got this far, but how do I check if there are some elements? :3

---

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [January 22, 2015, 11:06am UTC](https://forums.unrealengine.com/t/node-to-check-collision/304676/4 "2015-01-22T11:06:26Z")

</div>

For example, create an int var “overlappingActorsCount” and add +1 for every Array Element. Then on Completed, if this var \> 0 then it’s overlapping something.

Or drag “Length” node from GetOverlappingActors and check its value.

---

<div class="post-metadata">

**Author:** ![TheWTFage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheWTFage](https://forums.unrealengine.com/u/TheWTFage)\
**Post date:** [January 22, 2015, 2:44pm UTC](https://forums.unrealengine.com/t/node-to-check-collision/304676/5 "2015-01-22T14:44:23Z")

</div>

It works!! Thanks 🙂
