Question about a function

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

Question about a function

Postby Alfagamer » Thu Aug 19, 2021 6:38 pm

Hi in my script i have this. How do I have to write this function to make it work well? I would like to understand if putting <= my script works well or I need to modify this part by putting only <or only =


Code: Select all
if(isqrt(abs(get_val(PS4_RX)) * abs(get_val(PS4_RX)) + abs(get_val(PS4_RY)) * abs(get_val(PS4_RY))) <= right_stick_deadzone + 5) {
if(get_val(PS4_L2) > 90 && !get_val(PS4_R2))
 
User avatar
Alfagamer
First Sergeant
First Sergeant
 
Posts: 60
Joined: Fri Sep 04, 2020 7:58 am

Re: Question about a function

Postby Mad » Thu Aug 19, 2021 8:36 pm

Looks fine as is. :smile0517:
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord (2K / FPS)
Mad
Major General
Major General
 
Posts: 4532
Joined: Wed May 22, 2019 5:39 am

Re: Question about a function

Postby Alfagamer » Thu Aug 19, 2021 8:54 pm

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


Return to Titan One Device

Who is online

Users browsing this forum: devlivings, Ice89X and 90 guests