Does anyone know a way to force or simulate a player to press an arrowkey?
The reason i'm asking this is because i am using this arrowkeymovement system and when i change the "walk" animation on my unit to its "defend walk" animation, the animation isn't reset and the unit plays his "defend stand" animation while walking, until i release the up-arrowkey and press it down again..
So does anyone know of a way to either force/simulate a arrowkey press/release or a way to fix the system so it resets its animation(so you don't have to release and press the up-arrowkey to reset the animation)?
And by the way, i don't know much jass..
Thanks in advance
Edit: I thought of another way to make this work, by forcing the player to stand still to be able to defend/undefend, but i dont know how i would check if the unit is moving or not with the movement system i am using, any ideas?
The reason i'm asking this is because i am using this arrowkeymovement system and when i change the "walk" animation on my unit to its "defend walk" animation, the animation isn't reset and the unit plays his "defend stand" animation while walking, until i release the up-arrowkey and press it down again..
So does anyone know of a way to either force/simulate a arrowkey press/release or a way to fix the system so it resets its animation(so you don't have to release and press the up-arrowkey to reset the animation)?
And by the way, i don't know much jass..
Thanks in advance
Edit: I thought of another way to make this work, by forcing the player to stand still to be able to defend/undefend, but i dont know how i would check if the unit is moving or not with the movement system i am using, any ideas?
Last edited: