[gd_scene load_steps=6 format=3 uid="uid://c2kiuk2yxdlfr"] [ext_resource type="PackedScene" uid="uid://1kr3qqan3trk" path="res://objects/player.tscn" id="1_7kr4i"] [ext_resource type="PackedScene" uid="uid://dm3355tbkvx24" path="res://objects/section_2.tscn" id="2_og5hb"] [ext_resource type="PackedScene" uid="uid://0fykl1mw3c12" path="res://objects/enemy.tscn" id="3_ppe0x"] [sub_resource type="GDScript" id="GDScript_peyat"] script/source = "extends Area3D func _on_body_entered(body: Node3D) -> void: if body is Player: $\"../Enemy2\".notice_player(body as Player) $\"../Enemy\".notice_player(body as Player) " [sub_resource type="BoxShape3D" id="BoxShape3D_ggysn"] size = Vector3(3.69043, 1, 8.0553) [node name="Boot" type="Node3D"] [node name="Enemy" parent="." instance=ExtResource("3_ppe0x")] transform = Transform3D(0.0069285, -3.53762e-06, -0.999976, 2.87661e-06, 1, -3.51777e-06, 0.999976, -2.85216e-06, 0.0069285, 6.41735, 0.415662, -14.5241) [node name="Area3D" type="Area3D" parent="."] transform = Transform3D(0.734015, 0, -0.679134, 0, 1, 0, 0.679134, 0, 0.734015, 2.09421, 0.536154, -14.1446) script = SubResource("GDScript_peyat") [node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"] transform = Transform3D(1, 0, -4.91743e-07, 0, 1, 0, 4.91743e-07, 0, 1, 0, 0, 0) shape = SubResource("BoxShape3D_ggysn") [node name="Enemy2" parent="." instance=ExtResource("3_ppe0x")] update_interval = 0.2 transform = Transform3D(0.470242, 0, -0.882538, 0, 1, 0, 0.882538, 0, 0.470242, 8.22212, 0.536154, -17.0213) [node name="Player" parent="." instance=ExtResource("1_7kr4i")] transform = Transform3D(0.0816776, 0, 0.996659, 0, 1, 0, -0.996659, 0, 0.0816776, -2.58966, 0.717546, -2.77265) [node name="Environment" parent="." instance=ExtResource("2_og5hb")] [connection signal="body_entered" from="Area3D" to="Area3D" method="_on_body_entered"]