RAIDER_GameJam/level/container_2.tscn
Felix Kaiser 3f62e5e31d blergh
2025-02-17 16:46:19 +01:00

42 lines
1.7 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://deydgroj4rtrw"]
[ext_resource type="PackedScene" uid="uid://daxbgobllphuj" path="res://level/container2.gltf" id="1_1byya"]
[ext_resource type="Script" path="res://components/healthcomponent.gd" id="2_v7c2l"]
[ext_resource type="PackedScene" uid="uid://cilj11mx2ahb1" path="res://enemies/enemy_hit_box.tscn" id="3_fwamy"]
[sub_resource type="BoxShape3D" id="BoxShape3D_aburc"]
size = Vector3(2.6, 1.775, 2.2)
[sub_resource type="BoxShape3D" id="BoxShape3D_qw2n1"]
[sub_resource type="BoxShape3D" id="BoxShape3D_3giuv"]
size = Vector3(3, 2, 2.5)
[node name="Container2" instance=ExtResource("1_1byya")]
collision_layer = 4
collision_mask = 6
[node name="Node" parent="." index="0"]
transform = Transform3D(5, 0, 0, 0, 5, 0, 0, 0, 5, 0, 0, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="." index="1"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0499999, 0.5, -5.96046e-08)
shape = SubResource("BoxShape3D_aburc")
[node name="HealthComponent" type="Area3D" parent="." index="2"]
script = ExtResource("2_v7c2l")
max_health = 50.0
[node name="CollisionShape3D" type="CollisionShape3D" parent="HealthComponent" index="0"]
shape = SubResource("BoxShape3D_qw2n1")
disabled = true
[node name="EnemyHitBox" parent="." index="3" node_paths=PackedStringArray("health_component") instance=ExtResource("3_fwamy")]
health_component = NodePath("../HealthComponent")
[node name="CollisionShape3D" type="CollisionShape3D" parent="EnemyHitBox" index="0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
shape = SubResource("BoxShape3D_3giuv")
[connection signal="start_dying" from="HealthComponent" to="." method="queue_free"]