24-hour clock (source + example plugin)

24-hour clock (source + example plugin) 1.0.0

Login or Register an account to download this content
This mod provides a mostly reliable way to get the 24-hour time of day in the game. It does so by calculating the 12-hour time from the Finland-shaped clock in the player's house, then using the Sun's rotation to decide whether it's the morning or the afternoon.

I've also included a plugin that displays the 24-hour time of day in the upper right corner. I'll probably release an actual physical clock in the near future, I just need to figure out how to draw a GUI in world space.

How to use
  1. Open your mod in Visual Studio.
  2. Right click on the project > Add >Existing Item...
  3. Navigate to TwentyFourClock.cs and open it.
  4. Add using TwentyFourClock; to the using statements.
  5. Create a member field of type Clock24 and instantiate it in the OnLoad method.

Latest News

Author
Wampa842
Downloads
564
File size
4.2 KB
Views
4,542
First release
Last update
User rating
0.00 star(s) 0 ratings

More mods from Wampa842

Are you buying car setups?

  • Yes

  • No


Results are only viewable after voting.
Back
Top