MultiplayerSpawner - Spawn multiple nodes "at once"

Godot Version

4.3.stable

Question

I use a multiplayerSpawner to spawn the items in a player’s loadout. The player can have up to 4 items in their loadout. I currently have only figured out a way to spawn them one at a time. I need to run code on the client once all items in the loadout have spawned. How do I do this? Keeping a counter variable that counts up to 4 and resets to 0 when 4 is reached doesn’t work because the player can have less than 4 items in their loadout (they can have empty slots).

1 Like

Can you explain some more about your desired behavior?

I previously had an rpc to spawn them. The rpc would spawn as many as were not null, and then run some code. I can replicate this with spawners, but I don’t know how to run code once the batch of nodes have spawned.