Scripting: Relative movements
I want to make an elevator that covers several floors. The gaps between these floors are the same distance, so i would like to know if its possible to make a Func_static to move the same distance in the same direction each time the script is used.
For example, if the list starts at 0 and the script tells it to move 256 vertically upwards, the first time it goes to 256. then the the second time the same script is used the lift goes from 256 to 512. etc.
Its been a while since i did some scripting and i was wondering if this was possible, since it would only need 2 scripts (one up and one down) needed, rather than a new script for each elevator and going from each place.