Title: Re: How to write code for holding F a certain amount of time to activate script?
Post by: Chadric273 on January 15, 2020, 08:56:32 am
Not sure if this will benefit anyone who may view this thread in the future, but if you are wondering how to do what I asked about as well, I did manage to write a chunk of code that basically checks to see if you are holding F every second the code runs. The "use button" is referencing whatever button you press to basically do anything (buy perks, buy weapons off the wall, etc.).
Code: NOTE: you may have to change lines of this code to adjust it to what you want the script to do and to make it work correctly with your script. If you have any questions about this chunk of code don't be afraid to ask! (:
Title: Re: How to write code for holding F a certain amount of time to activate script?
Post by: AlecKeaneDUB on April 12, 2020, 06:48:09 am
Try using a while loop instead of an if and have it count up until the set time is reached while your pressing use