11 lines
244 B
GDScript
11 lines
244 B
GDScript
extends Node2D
|
|
|
|
@export var faction : bool
|
|
|
|
func changeitemscolor():
|
|
var items = get_children()
|
|
var ship = get_tree().current_scene.ship
|
|
for item in items:
|
|
item.modulate = modulate
|
|
if faction:
|
|
ship.minimap.add_marker(item, "hostile")
|