# My actors spawn in the same target point

**URL:** <https://forums.unrealengine.com/t/my-actors-spawn-in-the-same-target-point/364553>\
**Category:** Blueprint\
**Tags:** spawn, target-point, random, unreal-engine, question\
**Created:** [July 20, 2016, 6:13am UTC](https://forums.unrealengine.com/t/my-actors-spawn-in-the-same-target-point/364553 "2016-07-20T06:13:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2e5bba05](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2e5bba05](https://forums.unrealengine.com/u/anonymous_user_2e5bba05)\
**Post date:** [July 20, 2016, 6:13am UTC](https://forums.unrealengine.com/t/my-actors-spawn-in-the-same-target-point/364553/1 "2016-07-20T06:13:33Z")

</div>

I have 4 target point and 4 actors. so I spawn my actors but my actors in the same target point.

I want to one target point to one actor.

Target point : A, B, C, D

My Actors : 1, 2, 3, 4

EX) A-2, B-3, C-1, D-4 or A-1, B-2, C-3, D-4

this matching is random!

 ![99193-캡처.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/0/8a0d2c99d8819e9e189a134d6a4e8ff5a1b64007.jpeg)

Help me please.

---

<div class="post-metadata">

**Author:** ![expose](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@expose](https://forums.unrealengine.com/u/expose)\
**Post date:** [July 20, 2016, 9:26am UTC](https://forums.unrealengine.com/t/my-actors-spawn-in-the-same-target-point/364553/2 "2016-07-20T09:26:27Z")

</div>

hi calewell !  
if you use a random for generating the index of the array you read, it will randomize number and often returns the same index, that s why you have actor spawning on the same spawn.what you can do is creating an array of bool, synced to you array of spawner, and set the bool to 1 when the spawn is “occupied” :  
for exemple , set the bool array [3] to 1 if spawner 4 is already occupied  
and then randomize with the reamining free indexes to spawn next actor.  
fell free to download my project here :

> **[\[FREE\] Blueprints multiplayer replicated bonus spawn system](https://forums.unrealengine.com/showthread.php?116088-FREE-Blueprints-multiplayer-replicated-bonus-spawn-system&highlight=free%2Breplicated)**
>
> hi every one. for my game i build a replicated bonus spawn system, and wanted to share it. you can download it here : how it works : just drop bonus spawn points in your level ( those are just dummies, they...

i use this method to spawn the bonuses and to prevent to have 2 bonuses at the same point

---

<div class="post-metadata">

**Author:** ![expose](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@expose](https://forums.unrealengine.com/u/expose)\
**Post date:** [July 20, 2016, 9:27am UTC](https://forums.unrealengine.com/t/my-actors-spawn-in-the-same-target-point/364553/3 "2016-07-20T09:27:32Z")

</div>

an other way would be to remove from your array of spawner, the spawner you just got. easier but that would mean rebuild the array anytime you may need it later
