BIS fnc linearConversion: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "[[Scalar" to "[[Number") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 37: | Line 37: | ||
<dd class="note"> | <dd class="note"> | ||
({{arma3}} 0.50) It is recommended to use [[linearConversion]] instead of [[BIS_fnc_linearConversion]]: | ({{arma3}} 0.50) It is recommended to use [[linearConversion]] instead of [[BIS_fnc_linearConversion]]: | ||
<code> | <code>linearConversion [0, 100, 50, 0, 50, [[true]]]; {{cc|same as [[0, 100], 50, [0, 50]] [[call]] [[BIS_fnc_linearConversion]]}}</code> | ||
</dd> | </dd> | ||
</dl> | </dl> |
Revision as of 21:36, 12 July 2022
Description
Syntax
- Syntax:
- Syntax needed
- Parameters:
- Array - [minimumValue,maximumValue] (originalSet)
- Number - (originalValue)
- Array - [minimumValue,maximumValue] (newSet)
- Return Value:
- Number (newValue)
Examples
- Examples:
- Example needed
Additional Information
- See also:
- linearConversion
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on Aug 1, 2014 - 23:39
- ffur2007slx2_5
-
(Arma 3 0.50) It is recommended to use linearConversion instead of BIS_fnc_linearConversion:
linearConversion [0, 100, 50, 0, 50, true]; // same as [[0, 100], 50, [0, 50]] call BIS_fnc_linearConversion