Provisório
This commit is contained in:
@@ -8,9 +8,6 @@ var Executed = false
|
||||
@onready var animator = get_node("gobot_new/AnimationPlayer")
|
||||
@onready var hud_container: HBoxContainer = $hud/Hud_container
|
||||
|
||||
|
||||
|
||||
|
||||
@export var view : Node3D
|
||||
@export var health := 3
|
||||
@export var foot_damage:= 1
|
||||
@@ -95,8 +92,7 @@ func knockback(impact_point: Vector3, force: Vector3) -> void:
|
||||
velocity = force.limit_length(9.0)
|
||||
|
||||
func _on_hurtbox_body_entered(body):
|
||||
#if health == 0:
|
||||
#is_dead = true
|
||||
|
||||
|
||||
var body_collision = (body.global_position - global_position)
|
||||
var force = -body_collision
|
||||
@@ -123,3 +119,8 @@ func verify_life():
|
||||
if health == 0:
|
||||
is_dead = true
|
||||
|
||||
|
||||
|
||||
func _on_foot_body_entered(body: Node3D) -> void: #foot
|
||||
|
||||
print(body.name)
|
||||
|
||||
Reference in New Issue
Block a user