Files
net-gunner/scripts/map_marker.gd

19 lines
378 B
GDScript3
Raw Normal View History

class_name MapMarker extends Node3D
var target : Node3D
2026-03-19 23:50:29 -04:00
func register_target(new_target : Node3D) -> void:
target = new_target
reposition()
func reposition() -> void:
var loc = target.position
position = Vector3(loc.x, position.y, loc.z)
2026-03-19 23:50:29 -04:00
func _process(_delta: float) -> void:
if target:
reposition()
2026-03-19 23:50:29 -04:00
func _on_hack_revealed(reveal : bool) -> void:
visible = reveal