# Hi, I want to create a random location spawner for trees on my game...

**URL:** <https://forums.unrealengine.com/t/hi-i-want-to-create-a-random-location-spawner-for-trees-on-my-game/2685866>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [December 17, 2025, 8:58pm UTC](https://forums.unrealengine.com/t/hi-i-want-to-create-a-random-location-spawner-for-trees-on-my-game/2685866 "2025-12-17T20:58:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![koxchogamer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@koxchogamer](https://forums.unrealengine.com/u/koxchogamer)\
**Post date:** [December 17, 2025, 8:58pm UTC](https://forums.unrealengine.com/t/hi-i-want-to-create-a-random-location-spawner-for-trees-on-my-game/2685866/1 "2025-12-17T20:58:20Z")

</div>

Hello, so I want to create a “99 nights in the forest” type game in Unreal… And I am wondering how can I create the trees to spawn in every place in the map but with some limitations… So the image is to help you understand what I want… The red in the center is the spawn (the house that player will stay, like a safe house. The orange is the area that small trees are going to spawn randomly, and the Blue is the Big trees and some small trees too… How can I create this?

 ![Ref_Game_Unreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/2/af228e2eaeccdd1795de39950afa5f0012b8ef1d.png)

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [December 17, 2025, 10:07pm UTC](https://forums.unrealengine.com/t/hi-i-want-to-create-a-random-location-spawner-for-trees-on-my-game/2685866/2 "2025-12-17T22:07:37Z")

</div>

Unreal has this thing called Procedural Content Generation.

Check the documentation here:

> **[Procedural Content Generation Overview | Unreal Engine 5.7 Documentation |...](https://dev.epicgames.com/documentation/en-us/unreal-engine/procedural-content-generation-overview)**
>
> An introduction to the Procedural Content Generation Framework and how it can be used in your projects in Unreal Engine.

You can also search for “Unreal PCG forest” in YouTube and you’ll find quite a lot of tutorial videos.

Hope you find something useful.
