19 lines
458 B
GDScript
19 lines
458 B
GDScript
extends Node3D
|
|
|
|
@export var player : Node
|
|
@export var gun_1 : Resource
|
|
@export var gun_2 : Resource
|
|
var held_guns = [gun_1,gun_2]
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
var instance_loop_times = held_guns.length()
|
|
while instance_loop_times > -1:
|
|
held_guns[instance_loop_times]
|
|
|
|
instance_loop_times -= 1
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
pass
|