can someone help me fix the syntax error in this please
3 posts
• Page 1 of 1
can someone help me fix the syntax error in this please
- Code: Select all
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ______ ___ ______ _______ __ __ _______ _______ __ __ ___ __ _ _______ _______ ___ _______ _______ //
//| | | | | _ | | || | | | | || _ || |_| || | | | | || | | || | | || |//
//| _ || | | | || |_ _|| |_| | | ___|| |_| || || | | |_| || ___| |_ _|| | | _ || _____|//
//| | | || | | |_||_ | | | | | | __ | || || | | || | __ | | | | | |_| || |_____ //
//| |_| || | | __ | | | |_ _| | || || || || | | _ || || | | | | | | ___||_____ |//
//| || | | | | | | | | | | |_| || _ || ||_|| || | | | | || |_| | | | | | | | _____| |//
//|______| |___| |___| |_| |___| |___| |_______||__| |__||_| |_||___| |_| |__||_______| |___| |___| |___| |_______|//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//// HOLD L2 AND PRESS EITHER L3 OR R3 THEN L1 OR R1 TO ADJUST AIM
unmap PS4_L1;
unmap PS4_R1;
int AXIS_END = 0;
int AXIS_START = 35;
main {
if(get_val(PS4_L2) && event_press(PS4_R3)) {
combo_run(RIGHT_HOOK)
}
if(get_val(PS4_L2) && event_press(PS4_L3)) {
combo_run(LEFT_HOOK)
}
if(get_val(PS4_L2) && event_press(PS4_L1)) {
AXIS_END -= 7;
}
if(get_val(PS4_L2) && event_press(PS4_R1)) {
AXIS_END += 7;
}
if(event_release(PS4_L2)) {
combo_stop(RIGHT_HOOK);
combo_stop(LEFT_HOOK);
AXIS_START = 35;
}
}
combo LEFT_HOOK {
set_val(XB1_LX,0);
set_val(XB1_LY,0);
set_val(XB1_RY,-100);
set_val(XB1_RX,-35);
wait(200);
call(END_SHOT);
}
combo RIGHT_HOOK {
set_val(XB1_LX,0);
set_val(XB1_LY,0);
set_val(XB1_RY,-100);
set_val(XB1_RX, 35);
wait(200);
call(END_SHOT);
}
combo END_SHOT{
set_val(PS4_RY,-100);
set_val(PS4_RX, AXIS_END);
wait(2000);
}
[code=gpc][/code]
-
shahely - Private First Class
- Posts: 2
- Joined: Tue Nov 17, 2020 1:27 am
Re: can someone help me fix the syntax error in this please
Replied to you on discord.
Here it is if anyone else wants it:
Here it is if anyone else wants it:
- Code: Select all
unmap PS4_L1;
unmap PS4_R1;
int AXIS_END = 0;
int AXIS_START = 35;
main {
if(get_val(PS4_L2) && event_press(PS4_R3)) {
combo_run(RIGHT_HOOK)
}
if(get_val(PS4_L2) && event_press(PS4_L3)) {
combo_run(LEFT_HOOK)
}
if(get_val(PS4_L2) && event_press(PS4_L1)) {
AXIS_END = AXIS_END - 7;
}
if(get_val(PS4_L2) && event_press(PS4_R1)) {
AXIS_END = AXIS_END + 7;
}
if(event_release(PS4_L2)) {
combo_stop(RIGHT_HOOK);
combo_stop(LEFT_HOOK);
AXIS_START = 35;
}
}
combo LEFT_HOOK {
set_val(XB1_LX,0);
set_val(XB1_LY,0);
set_val(XB1_RY,-100);
set_val(XB1_RX,-35);
wait(200);
call(END_SHOT);
}
combo RIGHT_HOOK {
set_val(XB1_LX,0);
set_val(XB1_LY,0);
set_val(XB1_RY,-100);
set_val(XB1_RX, 35);
wait(200);
call(END_SHOT);
}
combo END_SHOT{
set_val(PS4_RY,-100);
set_val(PS4_RX, AXIS_END);
wait(2000);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
- Mad
- Major General
- Posts: 4533
- Joined: Wed May 22, 2019 5:39 am
Re: can someone help me fix the syntax error in this please
@mad can i ask how do you find the error?
-
shahely - Private First Class
- Posts: 2
- Joined: Tue Nov 17, 2020 1:27 am
3 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 68 guests