Move left analog stick right
2 posts
• Page 1 of 1
Move left analog stick right
Hello,
I am looking to automate movement in a game on ps4 and was wondering if anyone could make me a piece of code to move the left analog stick right with speed and time held within the code, thanks.
I am looking to automate movement in a game on ps4 and was wondering if anyone could make me a piece of code to move the left analog stick right with speed and time held within the code, thanks.
-
Demonbane - Corporal
- Posts: 5
- Joined: Wed Sep 05, 2018 2:36 am
Re: Move left analog stick right
Please check if this is what you want.
- Code: Select all
define SPEED = 1;
int toggle;
int value;
main {
if(event_press(PS4_CROSS)) {
if(!toggle) {
toggle = TRUE;
value = 0;
}
}
if(toggle) {
value = value + SPEED;
if(value > 100) {
value = 100;
toggle = FALSE;
}
set_val(PS4_RX, value);
}
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
2 posts
• Page 1 of 1
Return to GPC1 Script Programming
Who is online
Users browsing this forum: No registered users and 53 guests