Yes, you can vest equity based on milestones instead of time. Just be clear in defining what the milestones are and what constitutes acceptable performance so neither party feels there is a "moving goalposts" situation.
For more specific information, please feel free to set up a call!