65 lines
2.4 KiB
Plaintext
65 lines
2.4 KiB
Plaintext
|
[gd_scene load_steps=8 format=2]
|
||
|
|
||
|
[ext_resource path="res://Assets/Bookshelf_out/Bookshelf.tscn" type="PackedScene" id=1]
|
||
|
[ext_resource path="res://Assets/Book_set_bookshelf_A_out/Book_set_bookshelf_A.tscn" type="PackedScene" id=2]
|
||
|
[ext_resource path="res://addons/RadMatt.3DFPP/Test_Objects/door/Door.gd" type="Script" id=3]
|
||
|
[ext_resource path="res://entities/Interaction.tscn" type="PackedScene" id=4]
|
||
|
|
||
|
[sub_resource type="BoxShape" id=1]
|
||
|
extents = Vector3( 0.00990057, 0.0100134, 0.00952265 )
|
||
|
|
||
|
[sub_resource type="Animation" id=3]
|
||
|
length = 0.001
|
||
|
tracks/0/type = "value"
|
||
|
tracks/0/path = NodePath("../Bookshelf5:translation")
|
||
|
tracks/0/interp = 1
|
||
|
tracks/0/loop_wrap = true
|
||
|
tracks/0/imported = false
|
||
|
tracks/0/enabled = true
|
||
|
tracks/0/keys = {
|
||
|
"times": PoolRealArray( 0 ),
|
||
|
"transitions": PoolRealArray( 1 ),
|
||
|
"update": 0,
|
||
|
"values": [ Vector3( 0, 0, 0 ) ]
|
||
|
}
|
||
|
|
||
|
[sub_resource type="Animation" id=2]
|
||
|
resource_name = "open"
|
||
|
tracks/0/type = "value"
|
||
|
tracks/0/path = NodePath("../Bookshelf5:translation")
|
||
|
tracks/0/interp = 1
|
||
|
tracks/0/loop_wrap = true
|
||
|
tracks/0/imported = false
|
||
|
tracks/0/enabled = true
|
||
|
tracks/0/keys = {
|
||
|
"times": PoolRealArray( 0, 1 ),
|
||
|
"transitions": PoolRealArray( 1, 1 ),
|
||
|
"update": 0,
|
||
|
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, 0, -2.85344 ) ]
|
||
|
}
|
||
|
|
||
|
[node name="SecretDoor" type="Spatial"]
|
||
|
|
||
|
[node name="Move Bookshelf" type="StaticBody" parent="."]
|
||
|
collision_layer = 2
|
||
|
script = ExtResource( 3 )
|
||
|
|
||
|
[node name="CollisionShape" type="CollisionShape" parent="Move Bookshelf"]
|
||
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.415551, -0.514223, 0 )
|
||
|
shape = SubResource( 1 )
|
||
|
|
||
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="Move Bookshelf"]
|
||
|
anims/RESET = SubResource( 3 )
|
||
|
anims/open = SubResource( 2 )
|
||
|
|
||
|
[node name="DoorSound" parent="Move Bookshelf" instance=ExtResource( 4 )]
|
||
|
|
||
|
[node name="Bookshelf5" parent="." instance=ExtResource( 1 )]
|
||
|
transform = Transform( -8.74228e-08, 0, 2, 0, 2, 0, -2, 0, -8.74228e-08, 0, 0, 0 )
|
||
|
|
||
|
[node name="Book_set_bookshelf_A3" parent="Bookshelf5" instance=ExtResource( 2 )]
|
||
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00539517, 1.00009, 0.32985 )
|
||
|
|
||
|
[connection signal="animation_finished" from="Move Bookshelf/AnimationPlayer" to="Move Bookshelf" method="_on_AnimationPlayer_animation_finished"]
|
||
|
[connection signal="animation_started" from="Move Bookshelf/AnimationPlayer" to="Move Bookshelf" method="_on_AnimationPlayer_animation_started"]
|