[gd_scene load_steps=8 format=3 uid="uid://c4548r0io7hiy"] [ext_resource type="Material" uid="uid://dajephuqpori" path="res://level/protomaterial.tres" id="1_xq305"] [ext_resource type="PackedScene" uid="uid://cilj11mx2ahb1" path="res://enemies/enemy_hit_box.tscn" id="2_5uygx"] [ext_resource type="PackedScene" uid="uid://d2p86lb72dp61" path="res://components/healthcomponent.tscn" id="3_a8b3n"] [sub_resource type="BoxMesh" id="BoxMesh_cq42u"] material = ExtResource("1_xq305") size = Vector3(2, 2, 3) [sub_resource type="BoxShape3D" id="BoxShape3D_xnh82"] size = Vector3(2, 2, 3) [sub_resource type="SphereShape3D" id="SphereShape3D_mxspy"] [sub_resource type="BoxShape3D" id="BoxShape3D_qy558"] size = Vector3(2, 2, 3) [node name="Barricade" type="CharacterBody3D"] collision_layer = 4 collision_mask = 7 collision_priority = 10.0 [node name="MeshInstance3D" type="MeshInstance3D" parent="."] mesh = SubResource("BoxMesh_cq42u") [node name="EnemyHitBox" parent="." node_paths=PackedStringArray("health_component") instance=ExtResource("2_5uygx")] health_component = NodePath("../Healthcomponent") [node name="CollisionShape3D" type="CollisionShape3D" parent="EnemyHitBox"] shape = SubResource("BoxShape3D_xnh82") [node name="Healthcomponent" parent="." instance=ExtResource("3_a8b3n")] max_health = 30.0 [node name="CollisionShape3D" type="CollisionShape3D" parent="Healthcomponent"] shape = SubResource("SphereShape3D_mxspy") disabled = true [node name="CollisionShape3D" type="CollisionShape3D" parent="."] shape = SubResource("BoxShape3D_qy558") [connection signal="start_dying" from="Healthcomponent" to="." method="queue_free"]