Hold aim button

This script will hold down the aim button in your favorite FPS game by pressing it once. Press it again to release the button.
Version1.00
AuthorCypherNova139
Publish DateSun, 25 May 2014 - 22:29
Last UpdateSun, 25 May 2014 - 22:29
Downloads401
RATE


1

0

Release Notes: Script made for a forum poster
Code: Select all
//This script will hold down a defined aim button when that button is pressed, then release it when the button is pressed again. 
 
//What button is your aim button?
define AimButton = PS3_L1;
 
int run;
 
main {
if(event_press(AimButton)) {
    if(run == 1) {
        run = 0;
    } else {
        run = 1;
    }
}
set_val(AimButton, 0)
 
if(run == 1) {
    set_val(AimButton, 100);
    } else if(run == 0) {
    set_val(AimButton, 0);
}
}