8 lines
243 B
GDScript
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
|