Input methode

FouriusCraft

New member
Hi, I'm confused about which method to use when the left stick control enters the outer area, causing the player to sprint instead of walk. What method can I utilize? Any references? For input, I'm using InControl, and I've tried the script below, but I find the code to be poor in quality

C#:
void Update()
    {
        if (Mathf.Abs(m_UltimateCharacterLocomotion.RawInputVector.x) > 0.8f || Mathf.Abs(m_UltimateCharacterLocomotion.RawInputVector.y) > 0.8f)
        {
            if (m_SpeedChange.IsActive)
            {
                return;
            }
            else
            {
                m_UltimateCharacterLocomotion.TryStartAbility(m_SpeedChange);
                Debug.Log("1");
            }
        }
    }


Screenshot 2023-08-31 091401.png
 
I think that this is a question for the InControl developer - I'm not familiar enough with what is triggering that functionality.
 
I think that this is a question for the InControl developer - I'm not familiar enough with what is triggering that functionality.
Okay thanks. . How about using the default input opsive? Have something to know if for example float control = 1 then start ability sprint. Sorry I use google translate
 
Top