API Reference GE Extensions career modules milestones generalMilestones Statistic Milestones Generates milestones based on `gameplay_statistic` metrics: distance driven, playtime, rollovers, and airtime.
Generates milestones based on gameplay_statistic metrics: distance driven, playtime, rollovers, and airtime.
Function Signature Description M.registerStastisticCallback(milestone)Register a statistic threshold callback M.clearStatisticCallback(milestone)Remove a registered callback
Hook Purpose M.onGeneralMilestonesCollectGenerate statistic milestones M.onGeneralMilestonesSetupCallbacksRegister statistic callbacks M.onGeneralMilestoneClaimedRe-register callback for next step
Property Value ID stat_distanceLabel "Long Distance Driver" Stat key vehicle/total_odometer.lengthSteps 10, 20, 35, 60, 90, 145, 215, 300 km Rewards majorLinear
Property Value ID stat_playtimeLabel "Play the Game" Stat key general/mode/career.timeSteps 5, 10, 15, 20, 25, 30, 35, 40 hours Rewards majorLinear
Property Value ID stat_rolloverLabel "Rollovers" Stat key vehicle/rolloverSteps Exponential: floor(pow(step-1, 1.5)) * 5 Rewards majorLinear
Property Value ID jumpLabel "Airtime" Stat key vehicle/airtime.timeSteps floor(pow(step, 1.5)) * 30 secondsRewards majorLinear
All milestones: 8 max steps, odometer/timer/carToWheels/jump icons, gray color, {statistic=true, general=true} filter.
Uses gameplay_statistic.callbackRegister to fire when a metric reaches a target value. Callbacks are re-registered after each claim to watch the next step.