the-crypt/ai/Hell Projectile.gd
2020-07-20 23:24:09 -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()