# How do I use the RandomPoint node with the SpawnActor node

**URL:** <https://forums.unrealengine.com/t/how-do-i-use-the-randompoint-node-with-the-spawnactor-node/469135>\
**Category:** Blueprint\
**Tags:** spawn-actor-from-cla, unreal-engine, nodes, Blueprint, question\
**Created:** [August 3, 2020, 10:59pm UTC](https://forums.unrealengine.com/t/how-do-i-use-the-randompoint-node-with-the-spawnactor-node/469135 "2020-08-03T22:59:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ep1cgamer007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ep1cgamer007](https://forums.unrealengine.com/u/ep1cgamer007)\
**Post date:** [August 3, 2020, 10:59pm UTC](https://forums.unrealengine.com/t/how-do-i-use-the-randompoint-node-with-the-spawnactor-node/469135/1 "2020-08-03T22:59:02Z")

</div>

I’m trying to spawn an actor called meteor in a random position in a bounding box, i followed a tutorial by Mathew Wadstein and I can’t figure out why its only spawning them in the center of the bounding box and not in a random place, I will appreciate any help. here’s a screenshot of my blueprint:

 ![309052-blueprint.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/9/c191fcc6e0aa3dd8f90c2faea61e55642c77eeac.png)

---

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [August 4, 2020, 2:18am UTC](https://forums.unrealengine.com/t/how-do-i-use-the-randompoint-node-with-the-spawnactor-node/469135/2 "2020-08-04T02:18:48Z")

</div>

Well, if they’re spawning in the center it probably means that the extent is too small or something is blocking them.

Edit: also keep in mind that _get box extent_ will not take in consideration any scaling. _Get scaled box extent_ is what you want to use instead.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 4, 2020, 9:08am UTC](https://forums.unrealengine.com/t/how-do-i-use-the-randompoint-node-with-the-spawnactor-node/469135/3 "2020-08-04T09:08:19Z")

</div>

Is that box actually a box? I only say that, because when I have a component that is a collision box, I can say:

 ![309096-spawn.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/f/21fbd827b55667ae79dbd938d4e36ed29920f532.jpeg)

---

<div class="post-metadata">

**Author:** ![ep1cgamer007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ep1cgamer007](https://forums.unrealengine.com/u/ep1cgamer007)\
**Post date:** [August 4, 2020, 2:25pm UTC](https://forums.unrealengine.com/t/how-do-i-use-the-randompoint-node-with-the-spawnactor-node/469135/4 "2020-08-04T14:25:21Z")

</div>

kinda, its an actor with a box collider.

---

<div class="post-metadata">

**Author:** ![ep1cgamer007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ep1cgamer007](https://forums.unrealengine.com/u/ep1cgamer007)\
**Post date:** [August 4, 2020, 2:27pm UTC](https://forums.unrealengine.com/t/how-do-i-use-the-randompoint-node-with-the-spawnactor-node/469135/5 "2020-08-04T14:27:25Z")

</div>

thank you, I will see if that works

---

<div class="post-metadata">

**Author:** ![ep1cgamer007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ep1cgamer007](https://forums.unrealengine.com/u/ep1cgamer007)\
**Post date:** [August 4, 2020, 2:35pm UTC](https://forums.unrealengine.com/t/how-do-i-use-the-randompoint-node-with-the-spawnactor-node/469135/6 "2020-08-04T14:35:08Z")

</div>

Thank you! it worked, all I had to do was change the get box extent to scaled and it solved my problem

---

<div class="post-metadata">

**Author:** ![ep1cgamer007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ep1cgamer007](https://forums.unrealengine.com/u/ep1cgamer007)\
**Post date:** [August 4, 2020, 2:35pm UTC](https://forums.unrealengine.com/t/how-do-i-use-the-randompoint-node-with-the-spawnactor-node/469135/7 "2020-08-04T14:35:37Z")

</div>

Thank you! it worked, all I had to do was change the get box extent to scaled and it solved my problem
