Files
VRyHungry1/Net/stations_spawner.gd
T
2026-07-29 14:45:09 +02:00

14 lines
371 B
GDScript

extends MultiplayerSpawner
@export var kitchen_scene: PackedScene
func _ready() -> void:
if not kitchen_scene:
push_error("StationSpawner missing kitchen_scene")
if NetworkManager.is_server():
# Later we will do procedural generation here.
# For now we just load a scene.
var kitchen = kitchen_scene.instantiate()
get_node(spawn_path).add_child(kitchen)