Warning: file_put_contents(/ff_508b98f587b02549a8aef561aa5707383641bbf23c99ff99.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
linearConversion - OFPEC Scripting Command Reference | OFPEC The Editing Center

linearConversion [min, max, value, newMin, newMax, clamp]

Operand types

[min, max, value, newMin, newMax, clamp] : Array

Type of returned value

Description

Converts value in interval [min, max] to newMin + a * (max - min) / (newMax - newMin)

Potentially clamps the final value (true/false).

Used In

Arma3

Example

linearConversion [1,10,2,2,20,false];
// result is 4

Advertisement