Scripting


Humanoid Core


Addon Example


    public class HumanoidAddon : MonoBehaviour
    {
        // Reference Humanoid Core
        public HumanoidCore humanoidCore;

        private void Start() {
            humanoidCore = GetComponent<HumanoidCore>();
        }

        private void Update() {
            if (humanoidCore.humanoidStatus == Status.Dead) return;
            YourLogic();
        }
        
        private void YourLogic() {
            // Your Logic
        }

    }
    

# Functions


# SetXAxis

Sets Humanoid movement on X axis.

    
    humanoidCore.SetXAxis(1f);
    
    
# SetYAxis

Sets Humanoid movement on Y axis.

    
    humanoidCore.SetYAxis(-1f);
    
    
# Jump

Will tell the Humanoid to jump, if possible.

    
    humanoidCore.Jump();
    
    
# ToggleRagdoll

Will toggle between ragdoll and normal.

    
    humanoidCore.ToggleRagdoll();