Halts game execution for 100 ms while playing a short sound. Useful during function development, as it allows to quickly find out whether a certain instruction was reached or a certain function was executed at all.  A7.06  If a sound file with the name beep.wav is found in the path, it is used for the beep sound; otherwise a default sound is played.


function my_event()
   beep(); // indicate that the event was triggered

See also:

diag, watched

► latest version online