1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  1. Pleskac

    Pleskac Scavenger

    Can we change player Input button setting? For example to set "Q" to Input.Jump?

    I found this class I believe this saves player settings but how to send it to player?

    Code (Text):
    using System;
    using UnityEngine;

    public class ConfigurationManager
    {
        public ConfigurationManager()
        {
        }

        public static void DeleteKey(string key)
        {
            PlayerPrefs.DeleteKey(key);
        }

        public static float GetFloat(string key, float defaultValue = 0)
        {
            return PlayerPrefs.GetFloat(key, defaultValue);
        }

        public static int GetInt(string key, int defaultValue = 0)
        {
            return PlayerPrefs.GetInt(key, defaultValue);
        }

        public static string GetString(string key, string defaultValue = "")
        {
            return PlayerPrefs.GetString(key, defaultValue);
        }

        public static bool HasKey(string key)
        {
            return PlayerPrefs.HasKey(key);
        }

        public static void SetFloat(string key, float value)
        {
            PlayerPrefs.SetFloat(key, value);
        }

        public static void SetInt(string key, int value)
        {
            PlayerPrefs.SetInt(key, value);
        }

        public static void SetString(string key, string value)
        {
            PlayerPrefs.SetString(key, value);
        }
    }
     
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    You can't send a command to the client that I know of.
     
  3. Swat1801

    Swat1801 Wood Hoarder

    We can't do this atm :(