# How do you compare actors?

**URL:** <https://forums.unrealengine.com/t/how-do-you-compare-actors/283419>\
**Category:** Blueprint\
**Tags:** actor, compare, unreal-engine, Blueprint, question\
**Created:** [May 15, 2014, 6:18pm UTC](https://forums.unrealengine.com/t/how-do-you-compare-actors/283419 "2014-05-15T18:18:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ItzFriday](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ItzFriday](https://forums.unrealengine.com/u/ItzFriday)\
**Post date:** [May 15, 2014, 6:18pm UTC](https://forums.unrealengine.com/t/how-do-you-compare-actors/283419/1 "2014-05-15T18:18:19Z")

</div>

Is there a way to check if an actor is a specific actor?

Scenario : I wish to check to see if my target is myself, if it isn’t then do something, if it is, then do nothing.

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [May 15, 2014, 6:38pm UTC](https://forums.unrealengine.com/t/how-do-you-compare-actors/283419/2 "2014-05-15T18:38:25Z")

</div>

Hey **ItzFriday** ,

You can do this by creating _Equal Object_ or _Not Equal Object_ nodes. In your case, I would suggest using **Not Equal Object** , this way if it is not the same Actor. It returns true.

I hope this helps.

 ![6339-compareactors.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/8/f28d1499dd50c95838cfad3289bbe637aa930e5c.png)

_Peace_

---

<div class="post-metadata">

**Author:** ![ItzFriday](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ItzFriday](https://forums.unrealengine.com/u/ItzFriday)\
**Post date:** [May 15, 2014, 6:39pm UTC](https://forums.unrealengine.com/t/how-do-you-compare-actors/283419/3 "2014-05-15T18:39:11Z")

</div>

Thank you for the speedy answer!

---

<div class="post-metadata">

**Author:** ![DatnessX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DatnessX](https://forums.unrealengine.com/u/DatnessX)\
**Post date:** [April 2, 2016, 4:31pm UTC](https://forums.unrealengine.com/t/how-do-you-compare-actors/283419/4 "2016-04-02T16:31:30Z")

</div>

This isn’t working, how it is possible?

 ![84917-thrthrt.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/4/8842d6b567d962119ac245f38601e3f03ea80bd7.png)

---

<div class="post-metadata">

**Author:** ![sw\_hornet](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sw_hornet/32/681783_2.png) [@sw\_hornet](https://forums.unrealengine.com/u/sw_hornet)\
**Post date:** [May 18, 2016, 7:35pm UTC](https://forums.unrealengine.com/t/how-do-you-compare-actors/283419/5 "2016-05-18T19:35:04Z")

</div>

@DatnessX: You’re comparing the instance of the class in the game which won’t be equal. You can try getting the class from the object and comparing that instead.

![91079-enemyai_2016-05-18_15-32-29.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/6/e1656d0fe2827fe4bcca58ed8d22925165892b07.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1f07ce14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1f07ce14](https://forums.unrealengine.com/u/anonymous_user_1f07ce14)\
**Post date:** [October 26, 2017, 1:40am UTC](https://forums.unrealengine.com/t/how-do-you-compare-actors/283419/6 "2017-10-26T01:40:57Z")

</div>

Without more context, I’ll say they’re different instances of the same mesh almost certainly

---

<div class="post-metadata">

**Author:** ![NSVerdilac](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nsverdilac/32/642567_2.png) [@NSVerdilac](https://forums.unrealengine.com/u/NSVerdilac)\
**Post date:** [April 24, 2023, 1:42pm UTC](https://forums.unrealengine.com/t/how-do-you-compare-actors/283419/7 "2023-04-24T13:42:49Z")

</div>

Thank you So much

---

<div class="post-metadata">

**Author:** ![Mantovictor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mantovictor](https://forums.unrealengine.com/u/Mantovictor)\
**Post date:** [June 23, 2023, 4:54pm UTC](https://forums.unrealengine.com/t/how-do-you-compare-actors/283419/8 "2023-06-23T16:54:03Z")

</div>

Hey,  
I’m kinda same doubt but with VR! I have a box collision and I wanted to check if the object collising with the box is the VR hand. In UE4 there’s the motion controller pawn bp we could use for that, now on UE 5 there’s no motion controller pawn anymore and I have no clue on how to make it work.  
I tried to compare but didn’t really work.

 ![UE_SS_01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/0/550adf015c4e597a8bed31008dc7256a92d2e434.png)

Aay idea?
