scripting question

GPC script programming for Titan Two device. Code examples, how to, questions, requests.

Moderators: The_Rabid_Taco, pablosscripts, bonefisher

scripting question

Postby fdg0d » Fri May 17, 2019 7:06 pm

is it possible to run this code only on the controller connected to input A on the titan two?

Code: Select all
#include <ps4.gph>
 
main {
 
 
 
if (get_val(PS4_LY) >= 10.0) {
set_val(PS4_LY, 0);
set_val(PS4_CROSS, 100);
}
 
if (get_val(PS4_LY) <= -10.0) {
set_val(PS4_LY, 0);
set_val(PS4_R3, 100);
}
 
}
User avatar
fdg0d
Sergeant Major
Sergeant Major
 
Posts: 72
Joined: Thu May 12, 2016 3:16 pm

Re: scripting question

Postby UK_Wildcats_Fans » Fri May 17, 2019 8:09 pm

Are you asking because you have something else plugged into Input B? You want it to run on Input A but not Input B? If that is what you want, then it is not current possible. The script would be applied to Input A and Input B.
User avatar
UK_Wildcats_Fans
Brigadier General
Brigadier General
 
Posts: 2074
Joined: Thu Jan 08, 2015 6:53 pm
Location: San Diego, California USA

Re: scripting question

Postby fdg0d » Fri May 17, 2019 8:25 pm

yes that was wat i was asking ty for the reply
User avatar
fdg0d
Sergeant Major
Sergeant Major
 
Posts: 72
Joined: Thu May 12, 2016 3:16 pm

Re: scripting question

Postby Scachi » Fri May 17, 2019 10:02 pm

fdg0d wrote:yes that was wat i was asking ty for the reply

Not sure if this will work...
When you are not already using some Input Translator you can create one and assign this to a specifc Input only.
With this Input Translator map LY of this port to some unused control..like for PS4 ACCEL_2Y
Use ACCEL_2Y now in your script to trigger something with the Input-A controller only.
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 1988
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: scripting question

Postby fdg0d » Sat May 18, 2019 7:32 am

Using ACCEL_2Y worked!
User avatar
fdg0d
Sergeant Major
Sergeant Major
 
Posts: 72
Joined: Thu May 12, 2016 3:16 pm

Re: scripting question

Postby Scachi » Sat May 18, 2019 9:17 am

fdg0d wrote:Using ACCEL_2Y worked!

:smile0517: Nice
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 1988
Joined: Wed May 11, 2016 6:25 am
Location: Germany


Return to GPC Script Programming (Titan Two)

Who is online

Users browsing this forum: cb57, ibexe666, JamesCaywood and 19 guests