the-crypt/ai/Script/Demon Fireball.gd
2020-07-21 23:22:33 -05:00

8 lines
174 B
GDScript

extends EnemyProjectile
func on_impact(collision):
var c = collision.collider
if c.has_method("get_type") and c.get_type() == "player":
Player.health -= 1
queue_free()