1. Hello, how to increase the day and reduce the night?
     
  2. TimeManager.Instance.DayLength = 1000f;
    TimeManager.Instance.NightLength = 10f;
     
  3. for cfg/console run?
     
  4. Plugin :D
     
  5. hmmm
    where passted this code?

    TimeManager.Instance.DayLength = 1000f;
    TimeManager.Instance.NightLength = 10f;
     
  6. Wulf

    Wulf Community Admin

    You'd have to write a plugin with those in it. It's code, not a command or setting.
     
  7. Code:
    using System;namespace Oxide.Plugins
    {
        [Info("DayNightDuration", "klauz24", 0.1)]
        class DayNightDuration : HurtworldPlugin
        {
            void Init()
            {
                // Time in seconds
                TimeManager.Instance.DayLength = 900;
                TimeManager.Instance.NightLength = 420;
            }
        }
    }
     
  8. wooow THX :)
     
  9. I create file FastNight.cs in serverfiles/oxide/plugins
    and add head code:
    Code:
    using System;
    using System.Collections.Generic;
    using Newtonsoft.Json;
    using UnityEngine;
    using Oxide.Core;
    using System.Linq;
    code now:
    Code:
    using System;
    using System.Collections.Generic;
    using Newtonsoft.Json;
    using UnityEngine;
    using Oxide.Core;
    using System.Linq;namespace Oxide.Plugins
    {
        [Info("DayNightDuration", "klauz24", 0.1)]
        class DayNightDuration : HurtworldPlugin
        {
            void Init()
            {
                // Time in seconds
                TimeManager.Instance.DayLength = 900;
                TimeManager.Instance.NightLength = 420;
            }
        }
    }
    not working.. night not change speed to day.
     
  10. Plugin name should be DayNightDuration in c# format.
     
  11. THX.
    Working ! ! ! !
     
  12. Ur welcome ;)
     
    Last edited by a moderator: Jun 25, 2018