# Casting to other actor doesn't work correcctly

**URL:** <https://forums.unrealengine.com/t/casting-to-other-actor-doesnt-work-correcctly/425601>\
**Category:** Multiplayer & Networking\
**Tags:** cast-to, actor-blueprint, unreal-engine, question\
**Created:** [May 21, 2018, 2:17pm UTC](https://forums.unrealengine.com/t/casting-to-other-actor-doesnt-work-correcctly/425601 "2018-05-21T14:17:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eee](https://forums.unrealengine.com/u/eee)\
**Post date:** [May 21, 2018, 2:17pm UTC](https://forums.unrealengine.com/t/casting-to-other-actor-doesnt-work-correcctly/425601/1 "2018-05-21T14:17:20Z")

</div>

I have a problem… When I hit the GhostTP with the FlashLight (FlashLight is located on FostTP), the custom event wich is located in GhostTP but called by the FoxTP executes only on the player who hit the Ghost, and not on the Ghost and the player. (The Game is multiplayer, the Ghost and Fox are player)

[http://prntscr.com/jkora7](http://prntscr.com/jkora7)  
[http://prntscr.com/jkosfr](http://prntscr.com/jkosfr)  
[http://prntscr.com/jkot1l](http://prntscr.com/jkot1l)  
[http://prntscr.com/jkov23](http://prntscr.com/jkov23)

---

<div class="post-metadata">

**Author:** ![eee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eee](https://forums.unrealengine.com/u/eee)\
**Post date:** [August 19, 2018, 1:20pm UTC](https://forums.unrealengine.com/t/casting-to-other-actor-doesnt-work-correcctly/425601/2 "2018-08-19T13:20:25Z")

</div>

If someone is reading this:

I’ve solved this issue a lot ago. Just use ‘get all actors from class’.
