18 lines
405 B
GDScript3
18 lines
405 B
GDScript3
|
extends Tower
|
||
|
class_name ReactorTower
|
||
|
|
||
|
@export var status_stats : StatusStats
|
||
|
@export var particlesystem : GPUParticles3D
|
||
|
|
||
|
|
||
|
func aim():
|
||
|
pass
|
||
|
|
||
|
|
||
|
func shoot():
|
||
|
for enemy in get_tree().get_nodes_in_group("Enemies"):
|
||
|
if global_position.distance_to(enemy.global_position) <= stats.fire_range:
|
||
|
var status = StatusRadioactive.new()
|
||
|
status.stats = status_stats
|
||
|
enemy.status_manager.add_effect(status)
|