Gems/EMotionFX/Code/EMotionFX/Source/MotionSystem.cpp
bool MotionSystem::CheckIfIsPlayingMotion(Motion* motion, bool ignorePausedMotions) const
    {
        return motion && AZStd::any_of(begin(m_motionInstances), end(m_motionInstances), [motion, ignorePausedMotions](const MotionInstance* motionInstance)
        {
            return !(ignorePausedMotions && motionInstance->GetIsPaused()) &&
                motionInstance->GetMotion()->GetID() == motion->GetID();
        });
    }
// check if there is a motion instance playing, which is an instance of a specified motion
check if there is a motion instance playing, which is an instance of a specified motion
check if there is a motion instance playing which is an instance of a specified motion
bool MotionSystem::CheckIfIsPlayingMotion(Motion* motion, bool ignorePausedMotions) const
    {
        return motion && AZStd::any_of(begin(m_motionInstances), end(m_motionInstances), [motion, ignorePausedMotions](const MotionInstance* motionInstance)
        {
            return !(ignorePausedMotions && motionInstance->GetIsPaused()) &&
                motionInstance->GetMotion()->GetID() == motion->GetID();
        });
    }
bool MotionSystem :: CheckIfIsPlayingMotion ( Motion * motion , bool ignorePausedMotions ) const { return motion && AZStd :: any_of ( begin ( m_motionInstances ) , end ( m_motionInstances ) , [ motion , ignorePausedMotions ] ( const MotionInstance * motionInstance ) { return ! ( ignorePausedMotions && motionInstance -> GetIsPaused ( ) ) && motionInstance -> GetMotion ( ) -> GetID ( ) == motion -> GetID ( ) ; } ) ; }
check if there is a motion instance playing, which is an instance of a specified motion
check if there is a motion instance playing which is an instance of a specified motion