WIP: Try another implementation

This commit is contained in:
2025-01-23 20:24:42 +01:00
parent fe08da9d4c
commit 2577c032fd
5 changed files with 33 additions and 3 deletions

View File

@ -6,12 +6,14 @@ var player_side: String
@onready var intro_view_port = $Intro/CameraMount/IntroCamera/SubViewportContainer/SubViewport
@onready var spawns = $Spawns
@onready var root = $'.'
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
var char : Node3D = null
var red_spawn: Node3D = $Spawns/Blue/SpawnArea
var position := red_spawn.global_position
char = ResourceLoader.load("res://scenes/utils/character.tscn").instantiate()
char.name = str(multiplayer.get_unique_id())
char.global_position = position
root.add_child(char)
pass

View File

@ -24,3 +24,7 @@ size = Vector3(0.100647, 1, 6.02112)
[node name="SpawnArea" type="CSGBox3D" parent="Spawns/Blue"]
transform = Transform3D(5.70162, 0, 0, 0, 1, 0, 0, 0, 7.97817, 21.2099, 1.78438, 1.23551)
size = Vector3(0.484497, 1, 5.99213)
[node name="MultiplayerSpawner" type="MultiplayerSpawner" parent="."]
_spawnable_scenes = PackedStringArray("res://scenes/utils/character.tscn")
spawn_path = NodePath("../Spawns/Red/SpawnArea")