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
- Level 1:
Examples
MFK
Lua
SetCollectibleSoundEffect("W_Idlereply_Moe_genitalsA");Game.SetCollectibleSoundEffect("W_Idlereply_Moe_genitalsA")