This repository has been archived on 2022-01-09. You can view files and clone it, but cannot push or open issues/pull-requests.
liblast/Assets/Weapons/Weapon.gd

21 lines
404 B
GDScript
Raw Normal View History

2020-06-19 23:15:01 +02:00
extends Spatial
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
2020-09-14 22:59:57 +02:00
func shoot():
$Handgun/AnimationPlayer.stop()
$Handgun/AnimationPlayer.play("Shoot")