scripting question
6 posts
• Page 1 of 1
scripting question
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);
}
}
-
fdg0d - Sergeant Major
- Posts: 83
- Joined: Thu May 12, 2016 3:16 pm
Re: scripting question
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.
-
UK_Wildcats - Brigadier General
- Posts: 2243
- Joined: Thu Jan 08, 2015 6:53 pm
Re: scripting question
yes that was wat i was asking ty for the reply
-
fdg0d - Sergeant Major
- Posts: 83
- Joined: Thu May 12, 2016 3:16 pm
Re: scripting question
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.
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
Re: scripting question
Using ACCEL_2Y worked!
-
fdg0d - Sergeant Major
- Posts: 83
- Joined: Thu May 12, 2016 3:16 pm
Re: scripting question
fdg0d wrote:Using ACCEL_2Y worked!
Nice
-
Scachi - Brigadier General
- Posts: 3044
- Joined: Wed May 11, 2016 6:25 am
- Location: Germany
6 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: A pile of bricks and 113 guests