Files
mmo/scripts/player/player.gd
Marek Lenczewski 04749104a0 update
2026-03-30 22:56:58 +02:00

9 lines
260 B
GDScript

extends CharacterBody3D
func _ready() -> void:
add_to_group("player")
if GameState.returning_from_dungeon:
GameState.restore_player(self)
global_position = GameState.portal_position + Vector3(0, 1, -5)
GameState.returning_from_dungeon = false