Root Motion Breaks with Horse Animset Pro

Im using the Agility Pack "Roll" ability, its root motion gets disabled when un-mounting the horse and remains this way until i use the "drive" ability.

 

Justin

Administrator
Staff member
I recommend telling Malbers about this - he is maintaining the integration.
 

Scytheria23

New member
OK, I have a solution, and it's easy.

Simply add two lines to the end of the integration script Ride HAP (Shown in red)

protected override void AbilityStopped(bool force)
{
base.AbilityStopped(force);
m_CharacterLocomotion.UpdateLocation = m_StartUpdateLocation;
m_CharacterLocomotion.AbilityMotor = Vector3.zero;
m_CharacterLocomotion.SetPositionAndRotation(m_Rider.MountPosition, m_Rider.MountRotation, false);
m_CharacterLocomotion.AllowRootMotionRotation = true;
m_CharacterLocomotion.AllowRootMotionPosition = true;

}

Done!
Scy
 

Justin

Administrator
Staff member
Glad you got it working. Can you send this change to Malbers so he can update this integration?
 
Top