Jump to content

Time of Day Events: Lights and Sound

Jason Campbell

Recommended Posts

Time Events: Lights and Sound

Original Dynamic Light Code by John Ford

Sounds are CC0

Adds the ability to have lights in the level that turn on at night.

Also demonstrates one way to have other things occur. I've included ambient sound that changes from day to night.

Shows how relatively simple using a timed events are.

Download timeEvent.zip


Follow my crappy included instructions.

Edit: Forgot to add to instructions. For the sound to start initially you need to call the function. I just put it in game.cs when the mission is loaded.

Add :

startDaySounds ();

If your mission starts at night add:

startNightSounds ();



Make sure that you have a scene set-up in a similar manner. AmbientSound, DynamicLights and MissionLights match the included code.

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.

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...