Donut Team is a labor of love, built and maintained by a small group of passionate developers. We invest our own time and resources to offer our tools, mods, and web services completely free of charge.

We don't run ads, and we will never sell your data - period.

If you've enjoyed anything we've created, please consider supporting our work with a one-time or monthly donation via our Ko-fi page . Every contribution helps us continue building great experiences for the community.

Dismiss
  • Modding Tools
  • Lucas' Simpsons Hit & Run Mod Launcher
  • Hacks
  • Mod Requirable Hacks
  • Additional Script Functionality
  • Console Commands
  • MFK Commands
  • Mission Initialisation
  • Stages

SetCollectibleSoundEffect

Available since Version 1.23.5.

Sets the sound effect that plays when collecting an item in the following objectives:

Scope

This command should be called between calls to AddObjective and CloseObjective in a mission's initialisation script.

Syntax

MFK
Lua
SetCollectibleSoundEffect( sound_resource_name );
Game.SetCollectibleSoundEffect( sound_resource_name )
  • sound_resource_name: The name of the sound resource to play.
    • none: No sound will play when picking up collectibles for the stage.
    • Default varies by level and in one case by mission:
      • Level 1: level_1_pickup_sfx
      • Level 2: level_2_pickup_sfx
      • Level 2 Mission 6: monkey_collect
      • Level 3: level_3_pickup_sfx
      • Level 4: level_4_pickup_sfx
      • Level 5: level_5_pickup_sfx
      • Level 6: level_6_pickup_sfx
      • Level 7: nuclear_waste_collect

Examples

MFK
Lua
SetCollectibleSoundEffect("W_Idlereply_Moe_genitalsA");
Game.SetCollectibleSoundEffect("W_Idlereply_Moe_genitalsA")