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.
|
RATE
|
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);
}
}