Aim + fire combo script.

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

Aim + fire combo script.

Postby Utah » Thu Jun 10, 2021 10:34 pm

Hi,

I’m looking to create a script whereby when I keep the aim button (LT/L2) held down my character pulls the trigger (RT/R2) of their weapon. I am basically looking to remove the need to pull the trigger at all. Thanks in advance.

Utah

EDIT* I forgot to add that I was looking for my character to continue firing rounds as long as I held down the aim button. I was thinking of intervals of around have a second to 1 second.
User avatar
Utah
Sergeant
Sergeant
 
Posts: 7
Joined: Mon Feb 22, 2021 9:48 pm

Re: Aim + fire combo script.

Postby Mad » Thu Jun 10, 2021 10:52 pm

Code: Select all
main {
    set_val(BUTTON_5, is_active(BUTTON_8) * 100);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: Baidu [Spider] and 112 guests