# Programatically spawn radial force impulse to the world

**URL:** <https://forums.unrealengine.com/t/programatically-spawn-radial-force-impulse-to-the-world/687589>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [November 9, 2022, 10:29pm UTC](https://forums.unrealengine.com/t/programatically-spawn-radial-force-impulse-to-the-world/687589 "2022-11-09T22:29:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ATomCZ1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ATomCZ1](https://forums.unrealengine.com/u/ATomCZ1)\
**Post date:** [November 9, 2022, 10:29pm UTC](https://forums.unrealengine.com/t/programatically-spawn-radial-force-impulse-to-the-world/687589/1 "2022-11-09T22:29:13Z")

</div>

I’m trying to create a random explosion in a specific map are programmatically from the blueprint. I did a simple actor which is placed in the middle of the area and which spawning sound, particle effect and decal. But I would like also to affect physical objects nearby. Si I want to spawn there a radial force. When I simply put radial force to the map it automatically affects everything in defined distance. Easy thing. But how to do the same programmatically? Add Radial Impulse node needs to define one object which is receiver of that force. Why it can’t be everything nearby, like Radial Impulse force placed to the map? Or there is some magic target that will tell engine to affect everything nearby?

---

<div class="post-metadata">

**Author:** ![pezzott1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pezzott1/32/1215068_2.png) [@pezzott1](https://forums.unrealengine.com/u/pezzott1)\
**Post date:** [November 10, 2022, 1:46am UTC](https://forums.unrealengine.com/t/programatically-spawn-radial-force-impulse-to-the-world/687589/2 "2022-11-10T01:46:24Z")

</div>

> [@ATomCZ1](#):
>
> simply put radial force to the map

Radial Force Actor is a premade actor with the logic to apply force to valid actors in a radius. You can add the component it uses to your custom BP to do the same:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/f/77f8c519fbf3d2429d79c74c4c57728b9fed06b2.png)

> **Details**
>
> ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/5/d/f5ddb16009492b6533783b63912d1b2aa7615ee8.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/9/c/29c63a3646bc6ebc92e1134d69774ba8f4325c54.png)

Result:  
 ![Strikes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/9/d099fd5fdb21ff393f4a2d3de892353c01bd1c82.gif)

Hope it helps.

---

<div class="post-metadata">

**Author:** ![ATomCZ1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ATomCZ1](https://forums.unrealengine.com/u/ATomCZ1)\
**Post date:** [November 10, 2022, 10:43am UTC](https://forums.unrealengine.com/t/programatically-spawn-radial-force-impulse-to-the-world/687589/3 "2022-11-10T10:43:58Z")

</div>

But this means that I will need to ensure that there will be just one event at the same time and always move this one instance to the proper location, instead of dynamically spawning force impulse just for a one-time action. But thanks I will go this way.

---

<div class="post-metadata">

**Author:** ![ATomCZ1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ATomCZ1](https://forums.unrealengine.com/u/ATomCZ1)\
**Post date:** [November 10, 2022, 11:16am UTC](https://forums.unrealengine.com/t/programatically-spawn-radial-force-impulse-to-the-world/687589/4 "2022-11-10T11:16:08Z")

</div>

I just tried and it works great in this way.  
The only thing that is not affected by this force for some reason are fragments of fractured mesh (GeometryCollectionActor). They are affected by any other physical object that hit them, but not by radial force.

---

<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:** [November 10, 2022, 11:43am UTC](https://forums.unrealengine.com/t/programatically-spawn-radial-force-impulse-to-the-world/687589/5 "2022-11-10T11:43:40Z")

</div>

Here’s another, less traditional method:

> [@Radial Impulse to ignore specified actors](https://forums.unrealengine.com/t/radial-impulse-to-ignore-specified-actors/491573/2):
>
> Here’s a cheeky idea. We’ll be dealing damage instead: we deal radial damage will falloff on click Damage Prevention Channel is set to World Static the wall’s object type is set to World Static as well, it will prevent all damage [353495-staticwall.png] upon receiving said damage, the physics simulating actor does this: untick Vel Change if you want the mass of the object to be taken into account; if you do, you’ll need to crank u…
