Right now, for example if I have an ability with hotkey "T"
if I hold down "T", the the ability repeatedly casts over and over
is there a way to make it so it will only cast the first time, and to recast it, i would have to release "T" and repress it again?
the cooldown has to be like 0.02, so if someone wants to use the ability repeatedly, then can, but they should have to spam press T multiple times (i dont want them to be able to just hold down the key)
also if you hold down hotkey and cast it while moving - after casting you still have targeting cursor, even if ability is on cooldown, would be fine to know how to fix that =(
Right now, for example if I have an ability with hotkey "T"
if I hold down "T", the the ability repeatedly casts over and over
is there a way to make it so it will only cast the first time, and to recast it, i would have to release "T" and repress it again?
the cooldown has to be like 0.02, so if someone wants to use the ability repeatedly, then can, but they should have to spam press T multiple times (i dont want them to be able to just hold down the key)
also if you hold down hotkey and cast it while moving - after casting you still have targeting cursor, even if ability is on cooldown, would be fine to know how to fix that =(
@HatsuneMikuMegurine: Go
give the ability a cool down.
@SouLCarveRR: Go
i want the player to be able to spam the hotkey 0.02 seconds "if they want to" though...
hmm maybe I didnt clarify enough what i wanted in my opening post
an ability like stimpack, that has no cursor or anything, if the player wants to cast it alot, they have to spam press "T",
i dont want them to be able to just "hold down T" , i want them to spam press T many many times,
if I add a cooldown, lets say 1 second, then they wont be able to spam press T anymore
so how do I make it so the ability casts "only once" everytime you press/hold down the key?