Changes

Jump to navigation Jump to search

Documentation/Engine/Advanced input configuration

38 bytes added, 18:01, 6 May 2019
no edit summary
{| class="wikitable" width="100%"
!style="width: 150px"|Function
!|Version
!|Description
|-
|max(1..)
|
|Returns biggest from the parameters.
|-
|min(1..)
|
|Returns smallest from the parameters.
|-
|pow(2..)
|
|(p0^p1)^p2)...
|-
|abs(1)
|
|Absolute value of the parameter.
|-
|sign(1)
|
|Returns -1 if parameter is negative number, 1 if the parameter is positive number and 0 for zero.
|-
|gt(2)
|
|Returns 1.0 if the first parameter is greater than the second one.
|-
|gte(2)
|
|Returns 1.0 if the first parameter is greater than or equal to the second one.
|-
|lt(2)
|
|Returns 1.0 if the first parameter is lower than the second one.
|-
|lte(2)
|
|Returns 1.0 if the first parameter is lower than or equal to the second one.
|-
|sel(3)
|
|Returns the second parameter if the first parameter evaluates to true (see above), for false returns the third parameter.
|-
|bool(1)
|
|Returns 1.0 if the first parameter evaluates to true (see above) and zero otherwise.
|-
|normalize(2-3)
|
|Returns normalized position of the first parameter in the range formed by <second parameter, third parameter>. If the value is outside of the range, it will be clamped to it. If third parameter is not provided, 1.0 will be used. If the second and third parameter do not form valid non-empty range, zero will be returned.
|-
|deadzone(2-3)
|
|Applies a zero-symmetrical deadzone. Similar to the normalize, however it applies symmetrically to the negative values as well. If the second parameter is negative, it is set to zero.
|-
|memory(2)
|1.35+ |Simple single-value memory. The memory starts at zero. If the first parameter evaluates to true, the second parameter is evaluated and its value is stored in the memory. Otherwise the second parameter is not evaluated and the memory is unchanged. The function returns the current value of the memory.
|-
|modifier(2)
|1.35+ |Supports implementation of modifier-like keys. The first parameter represents "modifier" expression and the second parameter represents "button" expression. The function starts with returning 0.0. If it detects false to true transition on the "button" parameter while the "modifier" parameter is true, it will start returning 1.0 until the "button" parameter reverts to false after which it returns back to 0.0. Please note that the function detects changes only while it is being evaluated. If something, such as short-circuit logical operator, prevents the call, the function might miss some changes. Function evaluates the "modifier" parameter only during the leading edge (false => true) on the "button" parameter. Because of this, avoid using memory based elements within the "modifier" parameter to avoid risk of unexpected behavior.
|}

Navigation menu