Hello,
I'm looking for a Floor or Ceiling Function for triggers. For instance, I need a condition to fire if the unit's life is greater than 75%.
The only way to achieve this is to go to Integer - Max Unit Life x Integer(3/4). However the Max life x 0.75 is not always an integer, thus the trigger stops! The easy fix would be to have a Floor function which would round down to the nearest integer.
Current Life > Floor[Max Life x (3/4)]
Having a Floor or Ceiling Function would be useful in A LOT of other situations as well.
I'm looking for a Floor or Ceiling Function for triggers. For instance, I need a condition to fire if the unit's life is greater than 75%.
The only way to achieve this is to go to Integer - Max Unit Life x Integer(3/4). However the Max life x 0.75 is not always an integer, thus the trigger stops! The easy fix would be to have a Floor function which would round down to the nearest integer.
Current Life > Floor[Max Life x (3/4)]
Having a Floor or Ceiling Function would be useful in A LOT of other situations as well.