Script Request
5 posts
• Page 1 of 1
Script Request
Hey guys
I need a script that will do these actions when I press A
Press A
Left Analog Stick Down or Button
Press A
Down
Press A
I need a script that will do these actions when I press A
Press A
Left Analog Stick Down or Button
Press A
Down
Press A
-
brayden321 - Staff Sergeant
- Posts: 11
- Joined: Tue Oct 23, 2018 2:17 am
Re: Script Request
The script below will perform the described actions, you may need adjust the wait() times in the combo the for best performance.
- Code: Select all
main {
if(event_press(XB1_A)) {
combo_run(MyCombo);
}
if(combo_running(MyCombo)) {
set_val(XB1_A, 0);
}
}
combo MyCombo {
// Press A
set_val(XB1_A, 100);
wait(60); wait(40);
// Down
set_val(XB1_DOWN, 100);
wait(60); wait(40);
// Press A
set_val(XB1_A, 100);
wait(60); wait(40);
// Down
set_val(XB1_DOWN, 100);
wait(60); wait(40);
// Press A
set_val(XB1_A, 100);
wait(60);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: Script Request
Can you please remap the A button to options button (left select button not pause)
The script works perfect thank you so much I just want to remap the A to the select button
The script works perfect thank you so much I just want to remap the A to the select button
J2Kbr wrote:The script below will perform the described actions, you may need adjust the wait() times in the combo the for best performance.
- Code: Select all
main {
if(event_press(XB1_A)) {
combo_run(MyCombo);
}
if(combo_running(MyCombo)) {
set_val(XB1_A, 0);
}
}
combo MyCombo {
// Press A
set_val(XB1_A, 100);
wait(60); wait(40);
// Down
set_val(XB1_DOWN, 100);
wait(60); wait(40);
// Press A
set_val(XB1_A, 100);
wait(60); wait(40);
// Down
set_val(XB1_DOWN, 100);
wait(60); wait(40);
// Press A
set_val(XB1_A, 100);
wait(60);
}
-
brayden321 - Staff Sergeant
- Posts: 11
- Joined: Tue Oct 23, 2018 2:17 am
Re: Script Request
Or can I remap the script to trigger from the select button ?
-
brayden321 - Staff Sergeant
- Posts: 11
- Joined: Tue Oct 23, 2018 2:17 am
Re: Script Request
brayden321 wrote:Or can I remap the script to trigger from the select button ?
yes:
- Code: Select all
main {
if(event_press(PS3_SELECT)) {
combo_run(MyCombo);
}
if(combo_running(MyCombo)) {
set_val(PS3_SELECT, 0);
}
}
combo MyCombo {
// Press A
set_val(XB1_A, 100);
wait(60); wait(40);
// Down
set_val(XB1_DOWN, 100);
wait(60); wait(40);
// Press A
set_val(XB1_A, 100);
wait(60); wait(40);
// Down
set_val(XB1_DOWN, 100);
wait(60); wait(40);
// Press A
set_val(XB1_A, 100);
wait(60);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
5 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 105 guests