I wanna create a script for a game which presses 5 buttons but the keys get pressed in order of Priority on which skill is on cooldown:
Excample:
- Hold MB5
- Skill 1 fires(is now on cooldown)
- Skill 2 fires(is now on cooldown)
- Skill 3 fires(is now on cooldown)
- (Skill 1 off cooldown)
- Skill 1 fires(is now on cooldown)
- Skill 4 Fires(is now on cooldown)
- (Skill 2 off cooldown)
- Skill 2 fires(is now on cooldown)
- Skill 5 fires(is now on cooldown)
... and so on
My Problem:
Chaining key presses behind each other with press and release obv. doesnt work because after Skill 1, it fires Skills in random order.
Same problem seems to exist with Press and release all keys simultaniously. In that case it only works with a ~1sec delay.
I cant seem to work it out if this just isnt possible in Lua or if there are limitations of the game.
I know this is not a high priority topic but i would appreciate some help here :)
Have a great day :)