Simple Script Requests
3 posts
• Page 1 of 1
Simple Script Requests
Hi,
Can someone help with a simple script request, this is for the PS4.
Script #1:
1. Presses X for 3 seconds.
2. Loop back to step 1.
3. Press O to stop loop.
Script #2:
1. Presses Square for 3 seconds.
2. Loop back to step 1.
3. Press O to stop loop.
Thanks!
Can someone help with a simple script request, this is for the PS4.
Script #1:
1. Presses X for 3 seconds.
2. Loop back to step 1.
3. Press O to stop loop.
Script #2:
1. Presses Square for 3 seconds.
2. Loop back to step 1.
3. Press O to stop loop.
Thanks!
-
Jaedric - Private First Class
- Posts: 2
- Joined: Mon Oct 22, 2018 6:02 am
Re: Simple Script Requests
Welcome to our forums.
Script 1:
Script 2:
Script 1:
- Code: Select all
int toggle;
main {
// 3. Press O to start/stop loop.
if(event_press(PS4_CIRCLE)) {
toggle = !toggle;
}
if(toggle) {
// 2. Loop back to step 1.
combo_run(MyCombo);
} else combo_stop(MyCombo);
}
combo MyCombo {
// 1. Presses X for 3 seconds.
set_val(PS4_CROSS, 100);
wait(3000);
wait(500);
}
Script 2:
- Code: Select all
int toggle;
main {
// 3. Press O to start/stop loop.
if(event_press(PS4_CIRCLE)) {
toggle = !toggle;
}
if(toggle) {
// 2. Loop back to step 1.
combo_run(MyCombo);
} else combo_stop(MyCombo);
}
combo MyCombo {
// 1. Presses X for 3 seconds.
set_val(PS4_SQUARE, 100);
wait(3000);
wait(500);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Simple Script Requests
Thanks, these worked great.
-
Jaedric - Private First Class
- Posts: 2
- Joined: Mon Oct 22, 2018 6:02 am
3 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 78 guests