weapon speed modifiers

This commit is contained in:
Rendo 2025-11-28 22:13:22 +05:00
commit 7c7f68b6f5
8 changed files with 37 additions and 21 deletions

View file

@ -5,9 +5,11 @@ const active_bomb: StringName = "uid://dtbpyfdawb02b"
func enter():
machine.animation_player.play(machine.animation_prefix+"plant")
machine.animation_player.animation_finished.connect(on_animation_finished)
machine.speed_modifier = 0.0
func exit():
machine.animation_player.animation_finished.disconnect(on_animation_finished)
machine.speed_modifier = 1.0
func on_animation_finished(animation: StringName):
if animation == machine.animation_prefix + "plant":