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");
}
}
}