knockback; base enemy scene; police van

This commit is contained in:
Michael Campbell 2026-03-18 16:14:34 -04:00
parent 370eb54163
commit d0bfe8d1be
13 changed files with 218 additions and 111 deletions

View file

@ -2,9 +2,8 @@ extends Area3D
func _on_collision(node: Node3D):
if node.has_method("hit"):
node.hit(null, INF)
node.hit(self, INF)
func _ready() -> void:
body_entered.connect(_on_collision)
area_entered.connect(_on_collision)