:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/MultiplayerSpawner.xml. .. _class_MultiplayerSpawner: MultiplayerSpawner ================== **Inherits:** :ref:`Node` **<** :ref:`Object` Properties ---------- +---------------------------------+-------------------------------------------------------------------+------------------+ | :ref:`int` | :ref:`spawn_limit` | ``0`` | +---------------------------------+-------------------------------------------------------------------+------------------+ | :ref:`NodePath` | :ref:`spawn_path` | ``NodePath("")`` | +---------------------------------+-------------------------------------------------------------------+------------------+ Methods ------- +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Object` | :ref:`_spawn_custom` **(** :ref:`Variant` data **)** |virtual| | +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_spawnable_scene` **(** :ref:`String` path **)** | +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear_spawnable_scenes` **(** **)** | +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`String` | :ref:`get_spawnable_scene` **(** :ref:`int` path **)** |const| | +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_spawnable_scene_count` **(** **)** |const| | +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Node` | :ref:`spawn` **(** :ref:`Variant` data=null **)** | +-----------------------------+--------------------------------------------------------------------------------------------------------------------------------+ Signals ------- .. _class_MultiplayerSpawner_signal_despawned: - **despawned** **(** :ref:`int` scene_id, :ref:`Node` node **)** ---- .. _class_MultiplayerSpawner_signal_spawned: - **spawned** **(** :ref:`int` scene_id, :ref:`Node` node **)** Property Descriptions --------------------- .. _class_MultiplayerSpawner_property_spawn_limit: - :ref:`int` **spawn_limit** +-----------+------------------------+ | *Default* | ``0`` | +-----------+------------------------+ | *Setter* | set_spawn_limit(value) | +-----------+------------------------+ | *Getter* | get_spawn_limit() | +-----------+------------------------+ ---- .. _class_MultiplayerSpawner_property_spawn_path: - :ref:`NodePath` **spawn_path** +-----------+-----------------------+ | *Default* | ``NodePath("")`` | +-----------+-----------------------+ | *Setter* | set_spawn_path(value) | +-----------+-----------------------+ | *Getter* | get_spawn_path() | +-----------+-----------------------+ Method Descriptions ------------------- .. _class_MultiplayerSpawner_method__spawn_custom: - :ref:`Object` **_spawn_custom** **(** :ref:`Variant` data **)** |virtual| ---- .. _class_MultiplayerSpawner_method_add_spawnable_scene: - void **add_spawnable_scene** **(** :ref:`String` path **)** ---- .. _class_MultiplayerSpawner_method_clear_spawnable_scenes: - void **clear_spawnable_scenes** **(** **)** ---- .. _class_MultiplayerSpawner_method_get_spawnable_scene: - :ref:`String` **get_spawnable_scene** **(** :ref:`int` path **)** |const| ---- .. _class_MultiplayerSpawner_method_get_spawnable_scene_count: - :ref:`int` **get_spawnable_scene_count** **(** **)** |const| ---- .. _class_MultiplayerSpawner_method_spawn: - :ref:`Node` **spawn** **(** :ref:`Variant` data=null **)** .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`