This repository has been archived on 2024-09-30. You can view files and clone it, but cannot push or open issues/pull-requests.
2024-09-17 00:49:40 +03:00
|
|
|
extends Area2D
|
|
|
|
|
2024-09-21 18:25:26 +03:00
|
|
|
@export var teleport_marker: Node2D
|
2024-09-17 00:49:40 +03:00
|
|
|
|
|
|
|
func _on_body_entered(body):
|
2024-09-21 18:25:26 +03:00
|
|
|
if body is Player and (body as Player).can_teleport:
|
|
|
|
(body as Player).teleport(teleport_marker.global_position)
|