# How to avoid overlapping between pickups?

**URL:** <https://forums.unrealengine.com/t/how-to-avoid-overlapping-between-pickups/317468>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 5, 2015, 2:37am UTC](https://forums.unrealengine.com/t/how-to-avoid-overlapping-between-pickups/317468 "2015-05-05T02:37:32Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![anonymous\_user\_5806167b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5806167b](https://forums.unrealengine.com/u/anonymous_user_5806167b)\
**Post date:** [May 13, 2015, 4:30am UTC](https://forums.unrealengine.com/t/how-to-avoid-overlapping-between-pickups/317468/23 "2015-05-13T04:30:29Z")

</div>

I m printing “Random Location” in the starting of “Spawn Coin” function. And now I’m calling only one tile. And its printing two times. Sometimes 1, sometimes 3 times. But mostly 2 times. Look at the screenshots.

And will you please take a look at this video (#4)?

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

I did exactly the same. I can’t upload my project because of huge size (800 MB) instead you can look at this video. Please.

I know I won’t call coins randomly at the end of this project. But I want to learn right now. Later, I will thinking about publishing a game.

 ![42456-unreal1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/a/84aa03555e9cfbd14f274fdd6663390df8db00e9.png)

 ![42457-unreal2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/a/71ab58a73ac985e3d518e6ddb5c38261a8bcc1c3.png)

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-avoid-overlapping-between-pickups/317468)._
