# Verse code for player to place mesh

**URL:** <https://forums.unrealengine.com/t/verse-code-for-player-to-place-mesh/1311324>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [September 25, 2023, 9:31am UTC](https://forums.unrealengine.com/t/verse-code-for-player-to-place-mesh/1311324 "2023-09-25T09:31:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![son0629](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@son0629](https://forums.unrealengine.com/u/son0629)\
**Post date:** [September 25, 2023, 9:31am UTC](https://forums.unrealengine.com/t/verse-code-for-player-to-place-mesh/1311324/1 "2023-09-25T09:31:25Z")

</div>

I am working on a MineCraft-like game in UEFN, can I create a Verse code that can use the signal remote to place meshes (blocks)? (Using DeepL)

---

<div class="post-metadata">

**Author:** ![JallsoppPL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JallsoppPL](https://forums.unrealengine.com/u/JallsoppPL)\
**Post date:** [September 25, 2023, 7:16pm UTC](https://forums.unrealengine.com/t/verse-code-for-player-to-place-mesh/1311324/2 "2023-09-25T19:16:57Z")

</div>

Hi @son0629 there is a Youtube tutorial that uses the signal remote to spawn custom prop anywhere.

Hopefully this is what your looking for.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/b/87be3cba5fec87af3c8a7d1f562448e6374cd61c.jpeg "Spawn Custom Pets / Props in Fortnite - UEFN / Creative 2.0") ](https://www.youtube.com/watch?v=2-0t1mkQ6yc)

---

<div class="post-metadata">

**Author:** ![son0629](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@son0629](https://forums.unrealengine.com/u/son0629)\
**Post date:** [September 29, 2023, 9:47am UTC](https://forums.unrealengine.com/t/verse-code-for-player-to-place-mesh/1311324/3 "2023-09-29T09:47:06Z")

</div>

Thank you for your response. It looks like this method would work, but is there any way to apply something like a grid snap?

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [September 29, 2023, 12:07pm UTC](https://forums.unrealengine.com/t/verse-code-for-player-to-place-mesh/1311324/4 "2023-09-29T12:07:59Z")

</div>

You’ll need to make your own custom grid system, you’ll also need to toggle between placing a “placeholder” mesh with no collision for when the player is trying to place a block. And another “solid” mesh (with collisions) for when it’s placed.

The grid system should snap the blocks depending on where the player is looking and a custom range distance from player. The system should also be able to check if a block has already been placed or not.

You might eventually want to add custom bounds or “out of bounds” detection system so that players don’t build wherever they want (under the floor, inside an already built wall, etc…)

---

<div class="post-metadata">

**Author:** ![LoPing](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/loping/32/737300_2.png) [@LoPing](https://forums.unrealengine.com/u/LoPing)\
**Post date:** [September 29, 2023, 11:33pm UTC](https://forums.unrealengine.com/t/verse-code-for-player-to-place-mesh/1311324/5 "2023-09-29T23:33:06Z")

</div>

This may also be useful: [example-on-how-to-spawn-and-destroy-props-using-verse](https://forums.unrealengine.com/t/example-on-how-to-spawn-and-destroy-props-using-verse/687648) It’s by @Rodney_Houle, an Epic guy who seems really perceptive.

I tested his code recently with no issues.

---

<div class="post-metadata">

**Author:** ![wasti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wasti](https://forums.unrealengine.com/u/wasti)\
**Post date:** [September 30, 2023, 4:46pm UTC](https://forums.unrealengine.com/t/verse-code-for-player-to-place-mesh/1311324/6 "2023-09-30T16:46:41Z")

</div>

I have a snippet for some [Grid Math | Uefn Code Snippet](https://dev.epicgames.com/community/snippets/lkW/fortnite-grid-math)  
iirc, to match up with the default fortnite grid, you’ll also need to offset the final output by 256.0 units, I forget on which axis (x or y, or both 🤷 )

---

<div class="post-metadata">

**Author:** ![son0629](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@son0629](https://forums.unrealengine.com/u/son0629)\
**Post date:** [October 9, 2023, 7:00am UTC](https://forums.unrealengine.com/t/verse-code-for-player-to-place-mesh/1311324/7 "2023-10-09T07:00:36Z")

</div>

How can I use this code [Grid Math | Uefn Code Snippet](https://dev.epicgames.com/community/snippets/lkW/fortnite-grid-math)mentioned by westi together with the one mentioned by SuperDoomPanda How can I use this code together with the one mentioned by SuperDoomPanda?
