# Help me please ! Unable to connect Return Value pins and Item to Find : Actor Class Reference is incompatible with BP Weapon Base Class Reference (by reference).

**URL:** <https://forums.unrealengine.com/t/help-me-please-unable-to-connect-return-value-pins-and-item-to-find-actor-class-reference-is-incompatible-with-bp-weapon-base-class-reference-by-reference/2230889>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [December 18, 2024, 7:19pm UTC](https://forums.unrealengine.com/t/help-me-please-unable-to-connect-return-value-pins-and-item-to-find-actor-class-reference-is-incompatible-with-bp-weapon-base-class-reference-by-reference/2230889 "2024-12-18T19:19:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phonexis1000-7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phonexis1000-7](https://forums.unrealengine.com/u/phonexis1000-7)\
**Post date:** [December 18, 2024, 7:19pm UTC](https://forums.unrealengine.com/t/help-me-please-unable-to-connect-return-value-pins-and-item-to-find-actor-class-reference-is-incompatible-with-bp-weapon-base-class-reference-by-reference/2230889/1 "2024-12-18T19:19:33Z")

</div>

Unable to connect Return Value pins and Item to Find : Actor Class Reference is incompatible with BP Weapon Base Class Reference (by reference).

 ![Снимок экрана 2024-12-18 191615](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/1/3613ad7a43823892170f399cc87b1757320a82af.png)

---

<div class="post-metadata">

**Author:** ![silnarm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/silnarm/32/955303_2.png) [@silnarm](https://forums.unrealengine.com/u/silnarm)\
**Post date:** [December 18, 2024, 10:37pm UTC](https://forums.unrealengine.com/t/help-me-please-unable-to-connect-return-value-pins-and-item-to-find-actor-class-reference-is-incompatible-with-bp-weapon-base-class-reference-by-reference/2230889/2 "2024-12-18T22:37:50Z")

</div>

What is the purpose of the `All Weapons` array?

If anything that derives from `Weapon Base` will do, remove it and just use the cast to determine if the thing is a weapon.

If you are trying to further refine what is acceptable (to a subset of all derived classes) move the cast over so it happens first.
