Holding Key problem
#4

pawn Код:
#define HOLDING(%0) ((newkeys & (%0)) == (%0))
Is only called once, its registers an instance when you start holding the key and exists until you release.
So i guess you are looking for a back to back calling, for that case, declare a timer when player starts holding and then do your code in the timer. Also, when player RELEASE the key, kill the timer.
Reply


Messages In This Thread
Holding Key problem - by JawsPlus - 22.05.2016, 04:52
Re: Holding Key problem - by WhiteGhost - 22.05.2016, 05:04
Re: Holding Key problem - by JawsPlus - 22.05.2016, 05:51
Re: Holding Key problem - by Gammix - 22.05.2016, 06:14
Re: Holding Key problem - by JawsCraft - 22.05.2016, 06:43

Forum Jump:


Users browsing this thread: 1 Guest(s)