Click to ADS (Need help with cancel modifiers)
2 posts
• Page 1 of 1
Click to ADS (Need help with cancel modifiers)
Hello, looking for some help with a script I recently found browsing. While I am not the originator of the script I would like some help tweaking it a little for my needs.
I would like to add some cancel modifiers. I love "Click to ADS" but I do not like pressing Right Click on my mouse to deactivate it every single time. I would love to add some other cancel modifiers so I don't have to click Right Click to get out of ADS every time.
How to I add 3 additional cancel modifiers so when I press those particular buttons for example XB1_X, XB1_LS and XB1_LEFT it cancels the "Click to ADS". I just want them to cancel not to activate.
Would appreciate any help I can get. I have fiddled around with some different scripts and with no luck. I am sure it's a simple solution with the right mind but unfortunately not mine :(
Here is the original script that works perfectly fine for what it is:
https://www.consoletuner.com/gpclib/?s=560
I would like to add some cancel modifiers. I love "Click to ADS" but I do not like pressing Right Click on my mouse to deactivate it every single time. I would love to add some other cancel modifiers so I don't have to click Right Click to get out of ADS every time.
How to I add 3 additional cancel modifiers so when I press those particular buttons for example XB1_X, XB1_LS and XB1_LEFT it cancels the "Click to ADS". I just want them to cancel not to activate.
Would appreciate any help I can get. I have fiddled around with some different scripts and with no luck. I am sure it's a simple solution with the right mind but unfortunately not mine :(
Here is the original script that works perfectly fine for what it is:
https://www.consoletuner.com/gpclib/?s=560
- 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 = XB1_LT;
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);
}
}
User avatar
Xbox One
Sergeant
Sergeant
Posts: 7
Joined: Mon Aug 15, 2016 5:37 am
Top
Re: Click to ADS (Nee
-
afjhal - Private
- Posts: 1
- Joined: Tue Mar 03, 2020 11:23 am
Re: Click to ADS (Need help with cancel modifiers)
Please try this:
- 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 = XB1_LT;
int run;
main {
if(event_press(AimButton)) {
if(run == 1) {
run = 0;
} else {
run = 1;
}
}
set_val(AimButton, 0)
if (event_press(XB1_X) || event_press(XB1_LS) || event_press(XB1_LEFT)) run = 0;
if(run == 1) {
set_val(AimButton, 100);
}
}
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
2 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 95 guests