API:PlayInteractSound
From RoR Wiki
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.
soundNamemust 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")
