-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgunshot.tscn
22 lines (17 loc) · 901 Bytes
/
gunshot.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[gd_scene load_steps=4 format=3 uid="uid://c7p8tyvoivfe6"]
[ext_resource type="AudioStream" uid="uid://bgmqpwdg8u3t5" path="res://assets/audio/pistol_fire2.wav" id="1_nj6gw"]
[ext_resource type="Script" path="res://shellsound.gd" id="2_ni174"]
[ext_resource type="AudioStream" uid="uid://cm26sspnq48ec" path="res://assets/audio/shells.wav" id="3_jin5u"]
[node name="shells" type="AudioStreamPlayer3D"]
stream = ExtResource("3_jin5u")
script = ExtResource("2_ni174")
[node name="Gunshot" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("1_nj6gw")
autoplay = true
[node name="Timer" type="Timer" parent="."]
wait_time = 0.5
one_shot = true
autostart = true
[connection signal="finished" from="." to="." method="_on_finished"]
[connection signal="finished" from="Gunshot" to="." method="_on_gunshot_finished"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]