I would like to know how to properly use the MultiplayerSpawner and MultiplayerSynchronizer as I did not find any explicit examples on either the Godot website or on the web.
My problem is that I manually instantiate a "Soldier" inside a Scene, which makes it available on both player's views. The issue is that when I run the queue_free
on that "Soldier" after getting hit by a Player, well it disappears on the Player that hit it but not the other (the image down below).
So if you have any recommendations or would like me to provide more code/details on my case do not hesitate.
Documentation
- https://docs.godotengine.org/en/4.1/classes/class_multiplayerspawner.html#class-multiplayerspawner-method-get-spawnable-scene-count
- https://docs.godotengine.org/en/4.1/classes/class_multiplayersynchronizer.html#class-multiplayersynchronizer
Thank you in advance for reading and your answers.