DMH-Online

Dungeon Masters Helper · Est. 2005

Areas Scripts

NWN Script: disable_sound.htm

Name: AreaQuiet
Effect: Cuts off ambient "crowd" sounds and background music in an Area, so any custom music comes through clearly.
Insert: Make sure the Area is displayed. Then place script under "Edit">>"Area Properties">>"Events">>"OnEnter".

(nwscript)
void main()
{

//Identifies current area
object oPC = GetEnteringObject();
object oArea = GetArea(oPC);

//Stops "crowd" sounds and music background
AmbientSoundStop(oArea);
MusicBackgroundStop(oArea);

}
[/nwscript

I know this is not an earthshattering script, but I just wanted to contribute something to this helpful forum.

⌂ All Scripts ← PreviousNext → 👁 Category List

All Areas Scripts

📄 ambient_npc_ani 📄 area_spawner 📄 change_lighting 📄 clean_trash_001 📄 clean_trash_002 📄 clean_trash_003 📄 despawn_mobs 📄 despawn_mobs_002 📄 disable_sound 📄 full_edge_transition_001 📄 full_edge_transition_002 📄 full_edge_transition_003 📄 full_edge_transition_004 📄 full_edge_transition_004a 📄 get_pcs 📄 guard_patrols 📄 keyed_transitions 📄 random_enc_001 📄 random_enc_002 📄 random_enc_003 📄 random_enc_004 📄 random_enc_006 📄 random_enc_009 📄 random_encounter_005 📄 random_interiors 📄 random_interiors_001a 📄 restrict_access 📄 sitting_area