[gd_scene load_steps=7 format=3 uid="uid://b5rve73suh7fc"] [ext_resource type="PackedScene" uid="uid://dnho3rpbb72mw" path="res://Objects/Meshes/lichtkastje.glb" id="1_je302"] [ext_resource type="Script" path="res://Scripts/lichtkastje.gd" id="2_m7o1t"] [ext_resource type="AudioStream" uid="uid://c6ghhps67gscc" path="res://Audio/lock-open.wav" id="3_ukf3n"] [sub_resource type="BoxShape3D" id="BoxShape3D_bfy6m"] size = Vector3(1, 10, 18) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_smcqf"] albedo_color = Color(0, 0, 0, 1) emission_enabled = true emission = Color(0, 0, 0.419608, 1) [sub_resource type="BoxShape3D" id="BoxShape3D_uh5nr"] size = Vector3(1, 3, 2) [node name="lichtkastje" instance=ExtResource("1_je302")] script = ExtResource("2_m7o1t") [node name="Lock" type="StaticBody3D" parent="Lock" index="0"] [node name="CollisionShape3D" type="CollisionShape3D" parent="Lock/Lock" index="0"] shape = SubResource("BoxShape3D_bfy6m") [node name="DeurOpen" type="AudioStreamPlayer3D" parent="Lock" index="1"] stream = ExtResource("3_ukf3n") unit_size = 1.07 [node name="Lever" parent="." index="4"] transform = Transform3D(0.0287741, 0, 0, 0, 0.208095, 0, 0, 0, 0.208095, -0.182957, 0, 0) surface_material_override/0 = SubResource("StandardMaterial3D_smcqf") [node name="Lever" type="StaticBody3D" parent="Lever" index="0"] collision_layer = 2 [node name="CollisionShape3D" type="CollisionShape3D" parent="Lever/Lever" index="0"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.33084, 0) shape = SubResource("BoxShape3D_uh5nr") [connection signal="input_event" from="Lock/Lock" to="." method="_on_lock_input_event"] [connection signal="input_event" from="Lever/Lever" to="." method="_on_lever_input_event"]