2026-01-19 00:46:32 -05:00
|
|
|
class_name MapMarker extends Node3D
|
|
|
|
|
|
|
|
|
|
var target : Node3D
|
|
|
|
|
|
|
|
|
|
func register_target(target : Node3D) -> void:
|
|
|
|
|
self.target = target
|
2026-01-19 10:00:27 -05:00
|
|
|
reposition()
|
|
|
|
|
|
|
|
|
|
func reposition() -> void:
|
|
|
|
|
var loc = target.position
|
|
|
|
|
position = Vector3(loc.x, position.y, loc.z)
|
2026-01-19 00:46:32 -05:00
|
|
|
|
|
|
|
|
func _process(delta: float) -> void:
|
|
|
|
|
if target:
|
2026-01-19 10:00:27 -05:00
|
|
|
reposition()
|
2026-01-19 00:46:32 -05:00
|
|
|
|
2026-03-01 21:26:31 -05:00
|
|
|
func _on_hack_revealed(is_visible : bool) -> void:
|
2026-01-19 00:46:32 -05:00
|
|
|
visible = is_visible
|