Initial Commit
This commit is contained in:
12
player_q3/Weapons.gd
Normal file
12
player_q3/Weapons.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
extends Node3D
|
||||
|
||||
var weapons = []
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
weapons.append($RevolverFix as Weapon)
|
||||
|
||||
|
||||
|
||||
func _process(delta):
|
||||
if Input.is_action_pressed("shoot"):
|
||||
weapons[0].Shoot()
|
||||
Reference in New Issue
Block a user