my actors spawn in the same target point
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!
Help me please.
asked Jul 20 '16 at 06:13 AM in Using UE4
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  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 : https://forums.unrealengine.com/showthread.php?116088-FREE-Blueprints-multiplayer-replicated-bonus-spawn-system&highlight=free+replicated i use this method to spawn the bonuses and to prevent to have 2 bonuses at the same point
answered Jul 20 '16 at 09:26 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here