- Joined
- Jul 4, 2016
- Messages
- 14
For some reason I am getting game crash, using following code:
local unit u
local real r = 0.0
set u = udg_Fear_Passive_victim
set r = r + (0.5 - 0.05 * (I2R(GetUnitLevel(u)))
set r = r + (1 - GetUnitLifePercent(u))/2
What's wrong?
Thanks in advanse!
P.S. For weird reasons my PC doesn't run syntax checker correctly(
local unit u
local real r = 0.0
set u = udg_Fear_Passive_victim
set r = r + (0.5 - 0.05 * (I2R(GetUnitLevel(u)))
set r = r + (1 - GetUnitLifePercent(u))/2
What's wrong?
Thanks in advanse!
P.S. For weird reasons my PC doesn't run syntax checker correctly(