PC style scoreboard control COD:WWII

GPC2 script programming for Titan Two. Code examples, questions, requests.

PC style scoreboard control COD:WWII

Postby b00st_g0d » Sat Nov 18, 2017 3:48 pm

Is there a way to fix the scoreboard hold example in Online Resources so that it will work for COD:WWII?
I tried using it, maybe I am missing something, but all I get is I have to hold it down to make it go away.

TIA
User avatar
b00st_g0d
Command Sergeant Major
Command Sergeant Major
 
Posts: 135
Joined: Wed Sep 20, 2017 3:12 am

Re: PC style scoreboard control COD:WWII

Postby J2Kbr » Mon Nov 20, 2017 11:38 am

Please try this and let us know if worked!! :)
Code: Select all
uint8 scoreboard;
 
main {
    // Touch-Click to enable/disable AFK
    if(event_active(BUTTON_2) || event_release(BUTTON_2)) {
        ++scoreboard;
    } set_val(BUTTON_2, 0.0);
    if(!Scoreboard && scoreboard) {
        combo_run(Scoreboard);
    }
 
}
 
combo Scoreboard {
    set_val(BUTTON_2, 100.0);
    wait(50);
    wait(200);
    --scoreboard;
}
 
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: PC style scoreboard control COD:WWII

Postby bonefisher » Mon Nov 20, 2017 11:26 pm

It works! :smile0517:
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: PC style scoreboard control COD:WWII

Postby b00st_g0d » Wed Nov 22, 2017 12:14 am

J2Kbr wrote:Please try this and let us know if worked!! :)
Code: Select all
uint8 scoreboard;
 
main {
    // Touch-Click to enable/disable AFK
    if(event_active(BUTTON_2) || event_release(BUTTON_2)) {
        ++scoreboard;
    } set_val(BUTTON_2, 0.0);
    if(!Scoreboard && scoreboard) {
        combo_run(Scoreboard);
    }
 
}
 
combo Scoreboard {
    set_val(BUTTON_2, 100.0);
    wait(50);
    wait(200);
    --scoreboard;
}
 

LIKE A CHAMP!!!!! Thank Bro!
User avatar
b00st_g0d
Command Sergeant Major
Command Sergeant Major
 
Posts: 135
Joined: Wed Sep 20, 2017 3:12 am

Re: PC style scoreboard control COD:WWII

Postby J2Kbr » Wed Nov 22, 2017 4:52 pm

:innocent_smile_1: you are welcome.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm


Return to GPC2 Script Programming

Who is online

Users browsing this forum: midg3t2 and 51 guests