initial commit
This commit is contained in:
12
scripts/Mag.gd
Normal file
12
scripts/Mag.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
extends MeshInstance3D
|
||||
|
||||
@onready var player = $"../../../../../"
|
||||
var start_size = self.scale.y
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
self.scale.y = (player.ammo/player.MAX_AMMO) #right now this makes the mag disappear
|
||||
Reference in New Issue
Block a user