play_animation
Play an AnimMontage on a skeletal mesh component's anim instance at a specified rate, with optional start section. Returns success, playing status, and montage length.
Instructions
Play an AnimMontage on a skeletal mesh component with UAnimInstance::Montage_Play at play_rate, then jump to start_section if playback started. Editor world unless the world param says otherwise; the component needs an anim instance. playing/success mean Montage_Play returned a length above 0.
Returns: { component_name: string, montage_path: string, montage_name: string, playing: bool, play_rate: number, montage_length: number, return_value: number, success: bool, start_section: string?, world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| world | No | Optional world selector: absent/'editor' (default) | 'pie' (ambiguous: PlayWorld, else the first PIE context) | 'server' (the PIE world with authority) | 'client' | 'pie:N' | 'game' (alias of 'pie'). | |
| play_rate | No | Playback rate multiplier (optional, default 1.0) | |
| montage_path | Yes | Full asset path to the AnimMontage (e.g. '/Game/Animations/MyMontage.MyMontage') | |
| start_section | No | Name of the section to jump to after play starts (optional) | |
| component_name | Yes | Object name of the USkeletalMeshComponent, e.g. "CharacterMesh0", case-insensitive; the first actor in the world that has one with that name wins |