# Communicate between local variation C++

**URL:** <https://forums.unrealengine.com/t/communicate-between-local-variation-c/486431>\
**Category:** C++\
**Tags:** casting, object-reference, unreal-engine, CPP, question\
**Created:** [July 20, 2021, 9:38am UTC](https://forums.unrealengine.com/t/communicate-between-local-variation-c/486431 "2021-07-20T09:38:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HANARU](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HANARU](https://forums.unrealengine.com/u/HANARU)\
**Post date:** [July 20, 2021, 9:38am UTC](https://forums.unrealengine.com/t/communicate-between-local-variation-c/486431/1 "2021-07-20T09:38:24Z")

</div>

Hello. I’m making simple survival game on mobile platform, well… I have some troubles to making system  
Now I want to ask guys is, Under IMG is BP what I want to make.

![344574-bp-checked.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/1/4611fd1f4faac5d41b68a6490431c06e1c8c2317.png)

And this is my code to making upper BP to C++

 ![344575-cpp-interact.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/8/258ea0e8346aff0a6ec876079c61c656933c8787.png)

As We can see BP Interact and DestroyActor’s Connection at Blueprint,  
but I don’t have idea how to make this in C++.  
What should I do with this Situation?  
Thanks for watching this post, and Hope luck while making.

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [July 22, 2021, 4:33pm UTC](https://forums.unrealengine.com/t/communicate-between-local-variation-c/486431/2 "2021-07-22T16:33:51Z")

</div>

There are lots of approaches. You can store Array of actors, add actor to list in **NotifyActorBeginOverlap** and remove from list in **NotifyActorEndOverlap**. Also check out this

- [AActor::GetOverlappingActors | Unreal Engine Documentation](https://docs.unrealengine.com/4.26/en-US/API/Runtime/Engine/GameFramework/AActor/GetOverlappingActors/1/)
- [AActor::NotifyActorBeginOverlap | Unreal Engine Documentation](https://docs.unrealengine.com/4.26/en-US/API/Runtime/Engine/GameFramework/AActor/NotifyActorBeginOverlap/)
- [AActor::NotifyActorEndOverlap | Unreal Engine Documentation](https://docs.unrealengine.com/4.26/en-US/API/Runtime/Engine/GameFramework/AActor/NotifyActorEndOverlap/)
