Files
Dawn-Godot/scripts/MapBounds.gd
2025-01-05 12:05:55 -06:00

18 lines
405 B
GDScript

extends Area3D
class_name MapBounds
func _ready() -> void:
pass
func _on_body_entered(body: Node3D) -> void:
if (!body is OverworldEntity):
return
print("Entered overworld ent")
(body as OverworldEntity).withinMapBounds = self;
func _on_body_exited(body: Node3D) -> void:
if (!body is OverworldEntity):
return
print("Entered overworld ent")
(body as OverworldEntity).withinMapBounds = null;