Hey guys, probably a noob question, but i still cant find a solution.
I have variable, and i want it start to increase (x+0.1) when x=1, then when x=4, for example, start to decrease (x-0.1) all this stuff performing every 0.0625 secs. Can someone suggest a structure of trigger?
the x_increasing variable actually does matter because otherwise script will working wrong. look, if x<4 it starts adding x+0.1 every period count, when it reaches 4 it will perform x-0.1 just once, cuz in next period it will check if x<4 again ( and it Will be <4, 3.99 for example) and start to add 0.1 again, so we wont see any difference by eyes.
to LosTacos:
i have syntax error in first line(global variables) could u be more specific i had no experience yet with custom scripts.
Update: i just made this stuff using built-in stuff and this boolean variable x_increasing
Hey again have a quick and simple question so dont want to create another thread here. I have 8 variables with type of units. So is there any option to destroy them all with one action cuz making one action for each unit seems to be annoying.Thanks.
Hey guys, probably a noob question, but i still cant find a solution.
I have variable, and i want it start to increase (x+0.1) when x=1, then when x=4, for example, start to decrease (x-0.1) all this stuff performing every 0.0625 secs. Can someone suggest a structure of trigger?
the x_increasing variable actually does matter because otherwise script will working wrong. look, if x<4 it starts adding x+0.1 every period count, when it reaches 4 it will perform x-0.1 just once, cuz in next period it will check if x<4 again ( and it Will be <4, 3.99 for example) and start to add 0.1 again, so we wont see any difference by eyes.
to LosTacos: i have syntax error in first line(global variables) could u be more specific i had no experience yet with custom scripts.
Update: i just made this stuff using built-in stuff and this boolean variable x_increasing
Hey again have a quick and simple question so dont want to create another thread here. I have 8 variables with type of units. So is there any option to destroy them all with one action cuz making one action for each unit seems to be annoying.Thanks.
@abvdzh: Go
Make only one variable and make it an array. Then make a loop from 1-8 and destroy unit_variable[loop]
I wasn't using script, that just just pseudocode.
To make a global variable just click outside the trigger and press control+B.