shooting finnished

This commit is contained in:
PfandBoss
2022-12-11 08:36:24 +01:00
parent 4771304d0f
commit adbfceeae0
3 changed files with 9 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ func shoot():
print(bullet.position)
var tween = bullet.create_tween()
tween.tween_property(bullet,"position",Vector3(70,0,0),0.5)
tween.tween_callback(queue_free)
tween.tween_callback(bullet.queue_free)
$AudioStreamPlayer.play(0)
return true
if currentStashValue >= 1 and currentPowderStashValue >= 2 and currentState == STATE.INACTIVE and ammoType == 1: