Trying to figure out how to write a code
3 posts
• Page 1 of 1
Trying to figure out how to write a code
I trying to figure out how to write a code that would rapidly tap PS4 L stick in the direction that I am pushing it. If anyone can assist I'd be so grateful. Thank you in advance
-
DaConsoleKid - Master Sergeant
- Posts: 29
- Joined: Mon Apr 27, 2020 1:25 pm
Re: Trying to figure out how to write a code
Please check if this code does what you want:
- Code: Select all
main{
if(abs(get_val(STICK_2_X)) >= 20.0 || abs(get_val(STICK_2_Y)) >= 20.0) {
combo_run(TapLeftStick);
}
}
combo TapLeftStick {
wait(100);
set_val(STICK_2_X, 0.0);
set_val(STICK_2_Y, 0.0);
wait(100);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Trying to figure out how to write a code
Thanks again 32Kbr
-
DaConsoleKid - Master Sergeant
- Posts: 29
- Joined: Mon Apr 27, 2020 1:25 pm
3 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 98 guests