Added fire mode select on gun script
This commit is contained in:
23
scripts/bullet3.gd
Normal file
23
scripts/bullet3.gd
Normal file
@@ -0,0 +1,23 @@
|
||||
extends AnimatableBody3D
|
||||
|
||||
|
||||
const SPEED = 30.0
|
||||
|
||||
@onready var mesh = $MeshInstance3D
|
||||
@onready var ray = $RayCast3D
|
||||
@onready var particles = $GPUParticles3D
|
||||
|
||||
# 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):
|
||||
|
||||
|
||||
position += transform.basis * Vector3(0, 0, -SPEED) * delta
|
||||
|
||||
|
||||
func _on_timer_timeout():
|
||||
queue_free()
|
||||
Reference in New Issue
Block a user