Modding Tools > Lucas' Simpsons Hit & Run Mod Launcher > Hacks > Mod Requirable Hacks > Additional Script Functionality > MFK Commands > Objectives > SetCollectibleSoundEffect

SetCollectibleSoundEffect

Sets the sound effect to use when collecting an item in delivery, dump or race objectives.

Context

This command should be called between calls to AddObjective and CloseObjective.

Syntax

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

SetCollectibleSoundEffect("W_Idlereply_Moe_genitalsA");

Game.SetCollectibleSoundEffect("W_Idlereply_Moe_genitalsA")

Notes

No additional notes.

Version History

1.23.5

Added this command.

Donut Team © 2023 · v4.0