Lavaarena Boarlord
Based on game build 714014 | Last updated: 2026-03-05
Overview
The lavaarena_boarlord prefab is a boss entity used in the Lava Arena event. It integrates the talker component to manage voice-related dialogue display via a custom on-screen speech root UI. It sets up custom animation banks, scales, and hooks into the talker’s ontalkfn and donetalkingfn callbacks to control the visual rendering of speech bubbles and head animations during boss interaction.
Usage example
-- Not intended for direct user instantiation.
-- This prefab is spawned automatically during the Lava Arena event.
-- Modders should avoid creating copies unless deeply customizing boss dialogue behavior.
Dependencies & tags
Components used:
transformanimstatesoundemitterdynamicshadownetworktalker
Tags:
king
Properties
| Property | Type | Default Value | Description |
|---|---|---|---|
speechroot | widget or nil | nil | Reference to the speech UI root widget created on talk. |
speech_parent | widget or nil | nil | Parent widget (eventannouncer) used to anchor speech UI. |
Main functions
OnTalk(inst, data)
- Description: Client-side callback invoked on talk start and end. Manages creation, updating, and cleanup of the speech UI overlay (text, head anim, tinting). Clears or schedules the speech root for removal after dialogue.
- Parameters:
inst(Entity) — The Boarlord instance.data(table or nil) — Containsmessage(string). May benilto indicate end of speech.
- Returns: Nothing.
- Error states: No-op if
ThePlayerorThePlayer.HUDis invalid, or ifdata.messageisniland no speech root exists.
SpeechRootKillTask(speechroot_inst, inst)
- Description: Cleanup helper called after a delay to safely kill the speech root widget. Prevents UI leaks after talk finishes.
- Parameters:
speechroot_inst(Entity) — Speech root entity.inst(Entity) — Boarlord instance (for reference).
- Returns: Nothing. Sets
inst.speechroottoniland kills the widget if still valid.
OnRemoveEntity(inst)
- Description: Cleanup callback triggered when the Boarlord entity is removed. Ensures speech UI resources are released.
- Parameters:
inst(Entity) — Boarlord instance.
- Returns: Nothing. Kills
speechrootif present and sets it tonil.
Events & listeners
- Listens to:
onremove(on speechroot) — Cleans up parent offset and nullifies speechroot references.
- Pushes:
- None directly. (Relies on
talkercomponent to drive talk events.)
- None directly. (Relies on