the-crypt/ai/Script/Demon Fireball.gd

8 lines
174 B
GDScript3
Raw Normal View History

2020-07-20 23:24:09 -05:00
extends EnemyProjectile
2020-07-19 17:19:31 -05:00
func on_impact(collision):
2020-07-20 23:24:09 -05:00
var c = collision.collider
if c.has_method("get_type") and c.get_type() == "player":
Player.health -= 1
2020-07-19 17:19:31 -05:00
queue_free()