need help creating a script
7 posts
• Page 1 of 1
need help creating a script
Hey I was wondering if someone can write me code with specific script.
If I double tap RS it activates the code, and the next time I press and hold RT it starts a combo.
When I release the RT it completes the rest of the combo and stops, also double tap RS to turn of that script.
I was going to work on the combo but I want it to do this :
RT , wait 100, RB, wait 100, RT, wait 100, LB, wait 100, RT --and end the combo there.
Thanks guys ill try to further search forums.
IM TOO EXCITED TO GET THIS TO WORK!!
If I double tap RS it activates the code, and the next time I press and hold RT it starts a combo.
When I release the RT it completes the rest of the combo and stops, also double tap RS to turn of that script.
I was going to work on the combo but I want it to do this :
RT , wait 100, RB, wait 100, RT, wait 100, LB, wait 100, RT --and end the combo there.
Thanks guys ill try to further search forums.
IM TOO EXCITED TO GET THIS TO WORK!!
Last edited by alencroat on Mon Jan 01, 2018 11:24 pm, edited 2 times in total.
-
alencroat - Lieutenant
- Posts: 320
- Joined: Sun Oct 15, 2017 5:58 pm
Re: need help creating a script
I got this so far:
so with this one the script is always on, feela like the script is all wrong.
Also I was thinking if its possible when mode is on to turn on any led light.
But yea i really need the coding right for the condition and I got combo figured out, any help is appreciated!
- Code: Select all
#pragma METAINFO("<author_name>", 1, 0, "")
#define RS_TAP BUTTON_6
bool SHOTIES = FALSE;
main {
if(get_val(RS_TAP) && time_release(RS_TAP) < 150 && time_active(RS_TAP) > 500) {
SHOTIES = !SHOTIES;
}
if(get_val(BUTTON_5) && !SHOTIES) {
combo_run(SHOTGUNS);
}
}
combo SHOTGUNS {
set_val(BUTTON_4, 0.00);
set_val(BUTTON_5, 0.00);
set_val(BUTTON_7, 0.00);
wait(200);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_5, 100.00);
set_val(BUTTON_7, 0.00);
wait(200);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_5, 0.00);
set_val(BUTTON_7, 0.00);
wait(10);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_7, 0.00);
wait(10);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_7, 0.00);
wait(200);
set_val(BUTTON_4, 100.00);
set_val(BUTTON_7, 0.00);
wait(200);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_7, 0.00);
wait(200);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_5, 0.00);
set_val(BUTTON_7, 0.00);
wait(10);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_5, 100.00);
set_val(BUTTON_7, 0.00);
wait(200);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_5, 0.00);
set_val(BUTTON_7, 0.00);
wait(10);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_7, 0.00);
wait(200);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_7, 100.00);
wait(200);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_7, 0.00);
wait(200);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_5, 0.00);
set_val(BUTTON_7, 0.00);
wait(10);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_5, 100.00);
set_val(BUTTON_7, 0.00);
wait(200);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_5, 0.00);
set_val(BUTTON_7, 0.00);
wait(10);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_7, 0.00);
wait(10);
set_val(BUTTON_4, 0.00);
set_val(BUTTON_7, 0.00);
wait(200);
}
so with this one the script is always on, feela like the script is all wrong.
Also I was thinking if its possible when mode is on to turn on any led light.
But yea i really need the coding right for the condition and I got combo figured out, any help is appreciated!
-
alencroat - Lieutenant
- Posts: 320
- Joined: Sun Oct 15, 2017 5:58 pm
Re: need help creating a script
I figured out some ways to work around my coding problems but uh, can someone point out how to add a led light to combo
-
alencroat - Lieutenant
- Posts: 320
- Joined: Sun Oct 15, 2017 5:58 pm
Re: need help creating a script
alencroat wrote:I figured out some ways to work around my coding problems but uh, can someone point out how to add a led light to combo
- Code: Select all
#define BLUE LED_1
#define RED LED_2
#define GREEN LED_3
#define RS_TAP BUTTON_6
bool SHOTIES;
init{printf("Combo SHOTGUNS ON");}
main{
if(event_active(RS_TAP) && time_release(RS_TAP) < 150) {
SHOTIES = !SHOTIES;
if (SHOTIES) printf("Combo SHOTGUNS OFF"); else printf("Combo SHOTGUNS ON");
}
if(event_active(BUTTON_5) && !SHOTIES) {
combo_run(SHOTGUNS);
}
}
#define led_set(a,b) led_set(a , b##.0 ,NULL)
combo SHOTGUNS {
led_set(RED, 0);
led_set(GREEN, 100);
led_set(BLUE, 0);
wait(0); // Don't Remove This wait(0);
set_val(BUTTON_4, 0);
set_val(BUTTON_5, 0);
set_val(BUTTON_7, 0);
wait(200);
set_val(BUTTON_4, 0);
set_val(BUTTON_5, 100);
set_val(BUTTON_7, 0);
wait(200);
set_val(BUTTON_4, 0);
set_val(BUTTON_5, 0);
set_val(BUTTON_7, 0);
wait(10);
set_val(BUTTON_4, 0);
set_val(BUTTON_7, 0);
wait(10);
set_val(BUTTON_4, 0);
set_val(BUTTON_7, 0);
wait(200);
set_val(BUTTON_4, 100);
set_val(BUTTON_7, 0);
wait(200);
set_val(BUTTON_4, 0);
set_val(BUTTON_7, 0);
wait(200);
set_val(BUTTON_4, 0);
set_val(BUTTON_5, 0);
set_val(BUTTON_7, 0);
wait(10);
set_val(BUTTON_4, 0);
set_val(BUTTON_5, 100);
set_val(BUTTON_7, 0);
wait(200);
set_val(BUTTON_4, 0);
set_val(BUTTON_5, 0);
set_val(BUTTON_7, 0);
wait(10);
set_val(BUTTON_4, 0);
set_val(BUTTON_7, 0);
wait(200);
set_val(BUTTON_4, 0);
set_val(BUTTON_7, 100);
wait(200);
set_val(BUTTON_4, 0);
set_val(BUTTON_7, 0);
wait(200);
set_val(BUTTON_4, 0);
set_val(BUTTON_5, 0);
set_val(BUTTON_7, 0);
wait(10);
set_val(BUTTON_4, 0);
set_val(BUTTON_5, 100);
set_val(BUTTON_7, 0);
wait(200);
set_val(BUTTON_4, 0);
set_val(BUTTON_5, 0);
set_val(BUTTON_7, 0);
wait(10);
set_val(BUTTON_4, 0);
set_val(BUTTON_7, 0);
wait(10);
set_val(BUTTON_4, 0);
set_val(BUTTON_7, 0);
wait(200);
led_reset();
wait(0); // Don't Remove This wait(0);
}
#undef led_set
-
Sillyasskid - Captain
- Posts: 574
- Joined: Sat May 14, 2016 3:07 am
Re: need help creating a script
SICK THANKS FOR HELP
-
alencroat - Lieutenant
- Posts: 320
- Joined: Sun Oct 15, 2017 5:58 pm
Re: need help creating a script
is this Jitter mode fir black ops 3 ?
-
Jalal - Sergeant Major
- Posts: 73
- Joined: Wed Apr 26, 2017 7:42 am
Re: need help creating a script
part of full script for fortnite
-
alencroat - Lieutenant
- Posts: 320
- Joined: Sun Oct 15, 2017 5:58 pm
7 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: Google [Bot], proxy342 and 127 guests