Skip to main content

Map Value

ValueAdapter_MapValue maps a value into a new range with a Value Mapper — the value-only twin of the Stat adapter Map Value.

Ships for Float and Int.

FieldDescription
MapperMin, Max, optional Curve Map / Curve, then Final Modifier (Add a Final Offset or Multiply by a Final Value Multiplier). See Map Value for the mapping process.

Example​

A distance in metres mapped to a damage multiplier that grows from 1 at 0 m to 2 at 10 m:

FieldValue
Min / Max0 / 10
Curve Mapoff
Final ModifierAdd, Final Offset 1
InputNormalizedResult
001
40.41.4
1012

The Int version rounds the result.