Files
Bullosseum/publikum_controller.gd
T
2026-07-30 15:12:22 +03:00

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")