Added per enemy taunts and other tweaks

This commit is contained in:
derek
2024-11-07 15:03:19 -06:00
parent ef1ab5dccb
commit af72a0678a
13 changed files with 66 additions and 57 deletions

View File

@@ -47,7 +47,7 @@ func _ready():
#highlight target
if target != null:
var taunt_spawn = ENEMY_TAUNT.instantiate()
taunt_spawn.text = taunt_spawn.taunts.pick_random()
taunt_spawn.text = target.taunts.pick_random()
target.add_child(taunt_spawn)
taunt_spawn.global_transform.origin = target.global_position + Vector3(0,2,0)
taunt_node = taunt_spawn