police car weak point

This commit is contained in:
Michael Campbell 2026-02-18 16:46:00 -05:00
parent 324e7d437b
commit 8a173b968d
15 changed files with 203 additions and 9 deletions

View file

@ -0,0 +1,10 @@
extends Area3D
func _on_collision(node: Node3D):
if node.has_method("hit"):
node.hit(null)
func _ready() -> void:
body_entered.connect(_on_collision)
area_entered.connect(_on_collision)