The function plugin is very useful, specially with the timeline/Scenario plugin. I´ve been using a playSound function with a parameter that is the name of the sound needed to be played.
The scenario plugin allows you to make a list of actions that will be executed in order after a certain amount of time like this:
tag,action_01 //this is the tag, you can call an specific tag using the Start Scenario event
0,buttonToggle // this is a simple function without parameters that toggles the Active boolean in the buttons
0,playSound,'intro' // Calls the playSound function with the parameter intro
3,playSound,'intro_02'
0,buttonToggle // Toggles the button again
exit,, // Exits the tag
The functions look something like this:
on function playSound > play sound by name "function.param(0)" // Plays the first parameter introduced in the function.
on function buttonToggle > Toggle boolean "Active" on family "Buttons"
It´s very useful and makes the code a lot cleaner. You can make functions to play certain animations per example.