# Create an actor inside another actor with sphere collision, unable to trigger the Event BeginOverlap event

**URL:** <https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [December 6, 2024, 6:06am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712 "2024-12-06T06:06:07Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![demoUser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@demoUser](https://forums.unrealengine.com/u/demoUser)\
**Post date:** [December 6, 2024, 6:06am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/1 "2024-12-06T06:06:07Z")

</div>

AActor with Sphere collision, if another actor is set within the collision range of AActor Sphere radius, AActor cannot receive Begin Overlap event  
AActor Collision Enabled setting “QueryAndPhysics” and Generate Overlap Events “true”  
Other Actor Collision Enabled setting “QueryAndPhysics” and Generate Overlap Events “true”  
AActor has a sphere collision radius of 200. Within this sphere kick collision range, the generated actor, AActor Event Begin Overlap, cannot work. By getting OverlappingActors, all actors within the Aactor sphere collision area can be obtained  
Aactor setting

 ![截屏2024-12-06 13.59.21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/a/f9a3b0546aa15c5e92fa24b918affe238df7a0dd.png)  
Enemy Aactor setting  
 ![截屏2024-12-06 14.00.48](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/e/97e741f24b8cd7a84e3aee36282e22c35529d93c.png)  
AActor ObjectType = “FindEnemy” only trigger ObjectType = “Enemy” 的actor at the edge。in AActor Sphere collision radius inside，AActor Event begin overlap not work

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [December 6, 2024, 7:18am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/2 "2024-12-06T07:18:19Z")

</div>

Not info here. You may need to post:

- collision settings of both actors
- how you “set within the collision range” - how is this part done?

---

<div class="post-metadata">

**Author:** ![demoUser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@demoUser](https://forums.unrealengine.com/u/demoUser)\
**Post date:** [December 6, 2024, 7:40am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/3 "2024-12-06T07:40:00Z")

</div>

AActor has a sphere collision radius of 200. Within this sphere kick collision range, the generated actor, AActor Event Begin Overlap, cannot work. By getting OverlappingActors, all actors within the Aactor sphere collision area can be obtained

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [December 6, 2024, 7:41am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/4 "2024-12-06T07:41:35Z")

</div>

~~Not what I meant.~~

Ah, I see you edited the original post.

> Within this sphere kick collision range, the generated actor, AActor Event Begin Overlap, cannot work.

Could you clarify what this means. How is it generated? Do you spawn an actor within the bounds of another actor?

---

<div class="post-metadata">

**Author:** ![demoUser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@demoUser](https://forums.unrealengine.com/u/demoUser)\
**Post date:** [December 6, 2024, 7:52am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/6 "2024-12-06T07:52:58Z")

</div>

> [@Everynone](#):
>
> Could you clarify what this means. How is it generated? Do you spawn an actor within the bounds of another actor?

For example, if the collision radius of AAactor’s sphere is 600, a BActor is randomly refreshed inside the Aactor sphere, hoping to trigger the AActor’s Event Begin overlap. This way, it is known that the BActor has entered the range. In fact, no Actor produced within the collision radius of AAactor’s sphere of 600 can trigger the Event Begin overlap

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [December 6, 2024, 7:54am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/7 "2024-12-06T07:54:57Z")

</div>

What needs to happen is very clear, no worries. What is not clear at all:

> [@demoUser](#):
>
> a BActor is randomly refreshed inside the Aactor sphere

What does it mean? What do you do, specifically? How do you **refresh** it? Could you show the script that does this? Do you `Set Actor Location`? Something else?

---

<div class="post-metadata">

**Author:** ![demoUser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@demoUser](https://forums.unrealengine.com/u/demoUser)\
**Post date:** [December 6, 2024, 7:58am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/8 "2024-12-06T07:58:14Z")

</div>

> [@Everynone](#):
>
> What does it mean? What do you do, specifically? How do you **refresh** it? Could you show the script that does this? Do you `Set Actor Location`? Something else?

 ![截屏2024-12-06 15.57.04](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/a/bba29a9bbf7c3e5d589f87f288c1751c4df725b3.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [December 6, 2024, 8:00am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/10 "2024-12-06T08:00:53Z")

</div>

Cool. I think I get it, but can you just confirm:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/7/0a7450af187d040ee0723ae730856f2131715409.jpeg)

You spawn an actor (box) inside another overlapping volume (sphere) and the overlap does not trigger?

---

<div class="post-metadata">

**Author:** ![demoUser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@demoUser](https://forums.unrealengine.com/u/demoUser)\
**Post date:** [December 6, 2024, 8:06am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/11 "2024-12-06T08:06:07Z")

</div>

> [@Everynone](#):
>
> You spawn an actor (box) inside another overlapping volume (sphere) and the overlap does not trigger?

Yes, it’s the case in the picture.  
My fault. English is not very good.

---

<div class="post-metadata">

**Author:** ![demoUser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@demoUser](https://forums.unrealengine.com/u/demoUser)\
**Post date:** [December 6, 2024, 8:10am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/12 "2024-12-06T08:10:30Z")

</div>

> [@demoUser](#):
>
> getting OverlappingActors

I can use ‘Get OverlappingActors’ to know all triggered actors, but using’ Event begin overlap 'cannot trigger knowing actors that enter the circular collision range.

---

<div class="post-metadata">

**Author:** ![demoUser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@demoUser](https://forums.unrealengine.com/u/demoUser)\
**Post date:** [December 6, 2024, 8:29am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/14 "2024-12-06T08:29:54Z")

</div>

> [@Everynone](#):
>
> Or do you need it the other way round?

I have checked and neither ‘yes’ nor’ no 'can trigger AActor’s Event BeginOverlap

Perhaps my situation is that AActor is a subclass of BActor. Causing it? AActor and BActor are different actors

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [December 6, 2024, 8:33am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/15 "2024-12-06T08:33:08Z")

</div>

> [@demoUser](#):
>
> I can use ‘Get OverlappingActors’ to know all triggered actors

I am afraid you will need to rely on this.

---

<div class="post-metadata">

**Author:** ![demoUser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@demoUser](https://forums.unrealengine.com/u/demoUser)\
**Post date:** [December 6, 2024, 8:34am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/16 "2024-12-06T08:34:34Z")

</div>

If two actors have already overlapped, Begin Overlap will not be triggered.

---

<div class="post-metadata">

**Author:** ![demoUser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@demoUser](https://forums.unrealengine.com/u/demoUser)\
**Post date:** [December 6, 2024, 8:41am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/17 "2024-12-06T08:41:54Z")

</div>

The design here is a bit unscientific. Unity handles this type of situation with 3 events: OnTriggerEnter, first entry, OnTriggerStay: overlap each frame internally, OnTriggerExit: stop

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [December 6, 2024, 8:47am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/18 "2024-12-06T08:47:50Z")

</div>

> [@demoUser](#):
>
> The design here is a bit unscientific.

Debatable. Overlaps revolve around boundary intersections which do not happen here - very scientific and literal. It would be nice, though if we were given an option to trigger it anyway.

You will need to `Get Overlapping Actors` instead or box / sphere overlap on Begin Play / after spawning.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 5, 2025, 8:47am UTC](https://forums.unrealengine.com/t/create-an-actor-inside-another-actor-with-sphere-collision-unable-to-trigger-the-event-beginoverlap-event/2175712/19 "2025-01-05T08:47:51Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
