13 lines
417 B
GDScript
13 lines
417 B
GDScript
extends Node3D
|
|
|
|
|
|
func _ready() -> void:
|
|
# Mark the crowd so debug overlays (show_animation_name / show_bones) skip it —
|
|
# 72 ambient clapping spectators would otherwise flood the view with tags.
|
|
add_to_group(&"public")
|
|
for child in get_children():
|
|
var anim := child.get_node_or_null(^"AnimationPlayer") as AnimationPlayer
|
|
if anim:
|
|
anim.speed_scale = randf_range(0.5, 1.5)
|
|
anim.play(&"ArmatureAction")
|