Jump to content
bama1234

Making ambient sounds play only at certain intervals during the game day

Recommended Posts

Is it possible to make certain ambient polygons (ambiance sounds) play at certain intervals during the game clock? The atmo_night_rural sound goes really well with the rural feel of my map, but I don't want it to play constantly, so is there a way I can make it play only during the nighttime hours?

 

Thanks in advance

Link to comment
Share on other sites

Is it possible to make certain ambient polygons (ambiance sounds) play at certain intervals during the game clock? The atmo_night_rural sound goes really well with the rural feel of my map, but I don't want it to play constantly, so is there a way I can make it play only during the nighttime hours?

 

Thanks in advance

Try some of these codes. I am not sure though if they work as command scripts. These are typically found in mission scripts.

void StopAmbientSound(const char* name_);void SetAmbientSoundVolumeByName(const char *name_, float volume_);void SetAmbientSoundVolumeBySound(const char *sound_, float volume_);

 

Link to comment
Share on other sites

 

Try some of these codes. I am not sure though if they work as command scripts. These are typically found in mission scripts.

void StopAmbientSound(const char* name_);void SetAmbientSoundVolumeByName(const char *name_, float volume_);void SetAmbientSoundVolumeBySound(const char *sound_, float volume_);

 

Alright, would these need to go in fp_params or..? I'll tinker around with it. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...