Simple Expression: Difference between revisions
Categories: ArmA: EditingArmA: Addon Configuration
(Description added.) |
m (More categories.) |
||
| Line 1: | Line 1: | ||
[[Category:ArmA: Editing]] | [[Category:ArmA: Editing]] | ||
[[Category:ArmA: Addon Configuration]] | |||
Simple expressions are not as flexible as normal scripts, but they are compiled for a very efficient execution. | Simple expressions are not as flexible as normal scripts, but they are compiled for a very efficient execution. | ||
Revision as of 11:54, 21 November 2007
Simple expressions are not as flexible as normal scripts, but they are compiled for a very efficient execution.
Folowing operators are available:
| randomGen | a random value from 0 to a |
| a factor [x,y] 0 | when a<=x, 1 when a>=y, interpolated in between.
Note: works fine even for x>y (calculated as 1-a factor [y,x]) |
| a min b | see min |
| a max b | see max |
| a - b | see a-b |
| a + b | see a+b |
| a * b | see a*b |
Description: a,b can be any simple expression. x,y can be a constant expression only (i.e. expression with a type Number).