From ae28e5d2546763844f212bb650911af4a2e17506 Mon Sep 17 00:00:00 2001 From: unfa Date: Fri, 18 Sep 2020 00:11:59 +0200 Subject: [PATCH] Shooting sound scene. --- Assets/Weapons/Handgun/Handgun.tscn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Weapons/Handgun/Handgun.tscn b/Assets/Weapons/Handgun/Handgun.tscn index bdc2ee6..cf77ecf 100644 --- a/Assets/Weapons/Handgun/Handgun.tscn +++ b/Assets/Weapons/Handgun/Handgun.tscn @@ -1,11 +1,15 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=4 format=2] [ext_resource path="res://Assets/Weapons/Handgun/Handgun.gltf" type="PackedScene" id=1] [ext_resource path="res://Assets/Weapons/Weapon.gd" type="Script" id=2] +[ext_resource path="res://Assets/SFX/Weapons-Handgun-Shoot.wav" type="AudioStream" id=3] [node name="Weapon" type="Spatial"] script = ExtResource( 2 ) [node name="Handgun" parent="." instance=ExtResource( 1 )] +[node name="SoundShoot" type="AudioStreamPlayer3D" parent="."] +stream = ExtResource( 3 ) + [editable path="Handgun"]