[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="Environment" parent="." instance=ExtResource("2_og5hb")] [node name="Enemy" parent="." instance=ExtResource("3_ppe0x")] transform = Transform3D(-0.388047, -3.32609e-06, -0.92164, 7.28825e-07, 1, -3.91574e-06, 0.92164, -2.1912e-06, -0.388047, 5.68389, 0.50111, -12.4121) [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.891191, -2.77265) [connection signal="body_entered" from="Area3D" to="Area3D" method="_on_body_entered"]