[Question] Setting a Cap on the R2 Button

GPC1 script programming for Titan One. Code examples, questions, requests.

[Question] Setting a Cap on the R2 Button

Postby ShortEssay » Sat Jan 13, 2018 4:53 pm

Is it possible to put a cap on the R2 button? when you press the R2 button the value increases until you finally fully press it and the value stays at 100, All I want to do is change the cap limit from 100 to 1, I probably didn't explain this correctly, but if you have an example/idea, please post it here, thanks.
User avatar
ShortEssay
Sergeant First Class
Sergeant First Class
 
Posts: 20
Joined: Tue Apr 04, 2017 12:53 am

Re: [Question] Setting a Cap on the R2 Button

Postby Prototype » Sun Jan 14, 2018 4:23 pm

ShortEssay wrote:All I want to do is change the cap limit from 100 to 1

You mean the hair trigger mod?
Code: Select all
        if(get_val(PS4_R2) > 0) {
            set_val(PS4_R2, 100);
        }
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3251
Joined: Sun Dec 16, 2012 1:43 pm

Re: [Question] Setting a Cap on the R2 Button

Postby ShortEssay » Sun Jan 14, 2018 7:19 pm

prototype wrote:
ShortEssay wrote:All I want to do is change the cap limit from 100 to 1

You mean the hair trigger mod?
Code: Select all
        if(get_val(PS4_R2) > 0) {
            set_val(PS4_R2, 100);
        }

Not exactly what i was thinking, but I'm assuming what I am trying to achieve isn't possible anyways, thanks tho!
User avatar
ShortEssay
Sergeant First Class
Sergeant First Class
 
Posts: 20
Joined: Tue Apr 04, 2017 12:53 am

Re: [Question] Setting a Cap on the R2 Button

Postby Prototype » Sun Jan 14, 2018 7:41 pm

You can also do that:
Code: Select all
        if(get_val(PS4_R2) > 0) {
            set_val(PS4_R2, 1);
        }
Console tuner since my 1st controller.
Scripting, a game in the game.
Believe or dare, It's Titanic! :smile0517:
User avatar
Prototype
Major General
Major General
 
Posts: 3251
Joined: Sun Dec 16, 2012 1:43 pm


Return to GPC1 Script Programming

Who is online

Users browsing this forum: No registered users and 45 guests