Quote from: Diarandor on November 02, 2015, 09:05:09 PM
This code seems useless. (And the variable direction is probably nil, because you have not defined it. Also, you don't say in which script you have written it.) You should explain what is what you want to do.
It works, the direction value is stored above in a locale variable (local direction = hero:get_direction()) and it keep the direction, there is just this strange thing, if I keep spamming the item button link can change direction while he's not allowed, if I stop spamming, the direction is fix again with another unwanted direction.
May I post video evidence ? it's kinda hard to describe the problem