police car weak point
This commit is contained in:
parent
324e7d437b
commit
8a173b968d
15 changed files with 203 additions and 9 deletions
|
|
@ -15,8 +15,9 @@ func _physics_process(delta: float) -> void:
|
|||
|
||||
rotation.y = Vector2(velocity.x, -velocity.z).angle()
|
||||
|
||||
func hit(_proj: PlayerProjectile):
|
||||
func hit(_proj: PlayerProjectile) -> bool:
|
||||
queue_free()
|
||||
return true
|
||||
|
||||
|
||||
func _on_hurtbox_body_entered(body: Node3D) -> void:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue