Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:PlayInteractSound

From RoR Wiki
Revision as of 19:47, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · Interact functions
Version: WAR 1.4.8

Plays a named interaction sound for the player's character, such as the sound of a quest being offered.

PlayInteractSound(soundName)

Arguments

soundName
string – Name of the sound. The stock UI uses "quest_offer", "quest_accept", "quest_complete", "quest_goodbye", "trainer_accept", "travel_offer", "travel_accept", "healer_offer" and "healer_goodbye", among others.

Returns

Nothing.

Details

  • The sound is attached to the player's own character. Nothing happens if the player's character is not available.
  • soundName must be a plain Lua string, not a wide string.
  • Exactly one argument must be passed.

Errors

None besides the generic Invalid Parameters message when the argument is missing or not a string.

Example

From default/ea_interactionwindow/source/interactionquestwindow.lua:

PlayInteractSound("quest_offer")

See also