Finally fixed the failed preload. It was a removed sound file.

layered_gunshot
unfa 2021-04-05 04:36:33 +02:00
parent d2d1f585bd
commit b9b004474c
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
[ext_resource path="res://Assets/Weapons/GrenadeLauncher/GranadeLauncher.gltf" type="PackedScene" id=1]
[ext_resource path="res://Classes/Weapon/Weapon.gd" type="Script" id=2]
[ext_resource path="res://Assets/Audio/SFX/Weapons_Handun_Shot.wav" type="AudioStream" id=3]
[ext_resource path="res://Assets/Audio/SFX/Weapons_Handun_Shot_01_A.wav" type="AudioStream" id=3]
[ext_resource path="res://Assets/Effects/CircleSoft.svg" type="Texture" id=4]
[ext_resource path="res://Assets/Audio/SFX/Weapons-Empty.wav" type="AudioStream" id=5]
[ext_resource path="res://Assets/Audio/SFX/Weapons-Handgun-Reload.wav" type="AudioStream" id=6]

View File

@ -375,9 +375,9 @@ func _input(event):
if event.is_action_pressed("WeaponReload"):
reload()
if event.is_action_pressed("NextWeapon"):
if event.is_action_pressed("WeaponNext"):
rpc("switch_to_next_weapon")
if event.is_action_pressed("PrevWeapon"):
if event.is_action_pressed("WeaponPrev"):
rpc("switch_to_prev_weapon")