From e84a33c03b5a348c66a63ae990102401ea55fe6d Mon Sep 17 00:00:00 2001 From: Raxki Date: Fri, 1 Nov 2024 16:51:17 -0400 Subject: [PATCH] Deferredly disable colliders for AI characters (as a precaution) --- Scripts/hiro_ai.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/hiro_ai.gd b/Scripts/hiro_ai.gd index 44bfb6c..c0c58fa 100644 --- a/Scripts/hiro_ai.gd +++ b/Scripts/hiro_ai.gd @@ -117,7 +117,7 @@ func set_ai_enabled(enabled: bool): set_ai_process_mode(Node.PROCESS_MODE_INHERIT if enabled else Node.PROCESS_MODE_DISABLED) func set_melee_box_enabled(enabled: bool): - melee_hitbox_collider.disabled = !enabled + melee_hitbox_collider.set_deferred("disabled", !enabled) func _on_ai_got_hurt(attack_power: int, attack_direction: Vector2): attacked_from = attack_direction