buckshotroulette-decomp/SmokeController.gd

16 lines
327 B
GDScript3
Raw Normal View History

2024-01-20 12:17:43 +00:00
class_name SmokeController extends Node
@export var particle_barrel : GPUParticles3D
@export var particle_chamber : GPUParticles3D
func _ready():
SpawnSmoke("barrel")
SpawnSmoke("chamber")
func SpawnSmoke(alias : String):
match (alias):
"barrel":
particle_barrel.restart()
"chamber":
particle_chamber.restart()