Skip to main content

Combine

Combines a constant into the Stat value according to the Contribution Type.

Ships for Float, Int, Vector2, Vector2Int, Vector3 and Vector3Int.

FieldDescription
Contribution TypeHow the Value is combined. See below.
ValueThe constant to combine.

Contribution Types​

TypeDescription
FlatAdds the injected value directly.
RateApplies the injected value as a percentage. The value should be between 0 and 1.
MultiplierMultiplies the Stat value by the injected value.

Example​

With a Stat value of 40:

Contribution TypeValueResult
Flat1050
Rate0.2540 × 1.25 = 50
Multiplier−1−40

The last row is Kodes' ValueInjector_NegateValue_R3D: it turns a positive amount into its negative.