speedin-santa/Scripts/Effects/SmokeRandomizer.gd
2024-12-18 16:35:26 -05:00

8 lines
243 B
GDScript

class_name SmokeRandomizer extends GPUParticles3D
@export_range(0, 1, 0.01) var smokeChance: float = 0.6
# Called when the node enters the scene tree for the first time.
func _ready():
if (randf_range(0, 1) > smokeChance): emitting = false