police car weak point
This commit is contained in:
parent
324e7d437b
commit
8a173b968d
15 changed files with 203 additions and 9 deletions
10
player/explosion/hit_area.gd
Normal file
10
player/explosion/hit_area.gd
Normal 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)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue