Question about a function 2

Titan One general support. Questions, firmware update, feature request.

Question about a function 2

Postby Alfagamer » Thu Aug 26, 2021 2:09 pm

What's wrong with this part of script. It says there is an error

Code: Select all
 if(bUseAimAssist) {
          interval_t += get_rtime();
          if(!(interval_t % STEP_INTERVAL)) {
            angle = (angle+STEPS) % 360;
          }
User avatar
Alfagamer
First Sergeant
First Sergeant
 
Posts: 60
Joined: Fri Sep 04, 2020 7:58 am

Re: Question about a function 2

Postby Tahsin » Thu Aug 26, 2021 3:28 pm

Alfagamer wrote:What's wrong with this part of script. It says there is an error

Code: Select all
 if(bUseAimAssist) {
          interval_t += get_rtime();
          if(!(interval_t % STEP_INTERVAL)) {
            angle = (angle+STEPS) % 360;
          }


Code: Select all
 if(bUseAimAssist) {
          interval_t += get_rtime();
          if(!(interval_t % STEP_INTERVAL)) {
            angle = (angle+STEPS) % 360;
          }
       }
 
User avatar
Tahsin
Sergeant Major
Sergeant Major
 
Posts: 100
Joined: Wed May 15, 2019 7:57 am

Re: Question about a function 2

Postby Alfagamer » Thu Aug 26, 2021 4:29 pm

Doesn't change anything. What?
User avatar
Alfagamer
First Sergeant
First Sergeant
 
Posts: 60
Joined: Fri Sep 04, 2020 7:58 am

Re: Question about a function 2

Postby Tahsin » Thu Aug 26, 2021 5:06 pm

Sorry i'm new to T2 scripting but tring to help you
Code: Select all
#define get_rtime()   ((int) elapsed_time())
:oops:
User avatar
Tahsin
Sergeant Major
Sergeant Major
 
Posts: 100
Joined: Wed May 15, 2019 7:57 am

Re: Question about a function 2

Postby Alfagamer » Thu Aug 26, 2021 5:10 pm

Thx for the help but this is for titan one device. And i don't understand what i have to do with this part u have published
User avatar
Alfagamer
First Sergeant
First Sergeant
 
Posts: 60
Joined: Fri Sep 04, 2020 7:58 am

Re: Question about a function 2

Postby Tahsin » Thu Aug 26, 2021 5:22 pm

Alfagamer wrote:Thx for the help but this is for titan one device. And i don't understand what i have to do with this part u have published

OK wait for some dev to help you
User avatar
Tahsin
Sergeant Major
Sergeant Major
 
Posts: 100
Joined: Wed May 15, 2019 7:57 am

Re: Question about a function 2

Postby Alfagamer » Thu Aug 26, 2021 5:25 pm

OK MAN!
User avatar
Alfagamer
First Sergeant
First Sergeant
 
Posts: 60
Joined: Fri Sep 04, 2020 7:58 am

Re: Question about a function 2

Postby Alfagamer » Thu Aug 26, 2021 6:52 pm

@MAD u can help me?
User avatar
Alfagamer
First Sergeant
First Sergeant
 
Posts: 60
Joined: Fri Sep 04, 2020 7:58 am

Re: Question about a function 2

Postby Mad » Thu Aug 26, 2021 8:49 pm

Alfagamer wrote:@MAD u can help me?

Code: Select all
interval_t = interval_t +  get_rtime();
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4533
Joined: Wed May 22, 2019 5:39 am


Return to Titan One Device

Who is online

Users browsing this forum: No registered users and 94 guests