TargetOrder beta
TypeAlias of @v12-engine/engine
ts
export type TargetOrder = 'nearest' | 'farthest' | 'lowestHealth' | 'highestHealth' | 'lowestHealthShare' | 'highestHealthShare' | 'random';The orders a query and an effect sort what they found in (WorldQuery.sort, EffectCommon.sort): nearest and farthest to its point (by the edge of each), the least or most health, the least or most of it as a share of its max (lowestHealthShare: the most hurt), or random, drawn from the world's numbers (world.rng), so the same every run. Ties go by who came into the world first