Math remap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 1: Line 1:
==Entity Description==
An entity that remaps a range of input values to a given range of output values.
An entity that remaps a range of input values to a given range of output values.


Line 24: Line 25:
*'''OutValue''' <float>
*'''OutValue''' <float>
:Fired when the '''InValue''' input is received, with the remapped input value as the parameter.
:Fired when the '''InValue''' input is received, with the remapped input value as the parameter.
[[Category:Entities]]

Revision as of 06:03, 28 September 2005

Entity Description

An entity that remaps a range of input values to a given range of output values.

Keyvalues

Input values below this value will be ignored.
  • in2 <integer>
Input values above this value will be ignored.
  • out1 <integer>
When the input value is equal to 'Minimum Valid Input Value' (in1), this is the output value.
  • out2 <integer>
When the input value is equal to 'Maximum Valid Input Value' (in2), this is the output value.

Flags

  • 1: Ignore out of range input values

Inputs

Input value and fire the output with the remapped value.

Outputs

Fired when the InValue input is received, with the remapped input value as the parameter.