Skip to main content

Distance

Calculates the distance between two vector Stats, maps the result using a ValueMapper, and returns the resulting multiplier.

Ships for Vector2, Vector2Int, Vector3 and Vector3Int. With fewer than two Stats, or Stats of another type, it returns 1.

FieldDescription
Value MapperMin, Max, optional Curve, then Final Modifier (Add / Multiply). See Map Value for how the mapping works.

Example​

Sharpshooter: up to double damage at long range. Stats: the Source's Position, the Target's Position. Value Mapper: Min 0, Max 16, Final Modifier Add, Final Offset 1.

DistanceMultiplier
0 m1
8 m1.5
16 m2