This script is from gpc1
3 posts
• Page 1 of 1
This script is from gpc1
- Code: Select all
#include <titanone.gph>
main {
set_val(PS4_RY, 0);
set_val(PS4_SQUARE, 0);
if(get_lval(PS4_RY) > 20) {
set_val(PS4_SQUARE, 100);
}
if(get_lval(PS4_SQUARE)) {
set_val(PS4_RY, 100);
}
}
It's it possible to have this script also have after n ms to press the L2 after initiating the above?
I guess what I'm asking is possibly two scripts. The script above with the added L2 being pressed after n ms from holding the button Square above.
and
another script with me after manually holding the RS down after n ms. The L2 will be pressed?
Thanks.
-
TrayDay - First Sergeant
- Posts: 60
- Joined: Wed Nov 02, 2016 11:12 pm
Re: This script is from gpc1
TrayDay wrote:It's it possible to have this script also have after n ms to press the L2 after initiating the above?
Yes, it is possible:
- Code: Select all
#include <ps4.gph>
main {
set_val(PS4_RY, 0.0);
set_val(PS4_SQUARE, 0.0);
if(get_actual(PS4_RY) > 20.0) {
set_val(PS4_SQUARE, 100.0);
}
if(get_actual(PS4_SQUARE)) {
if(event_active(PS4_SQUARE)) {
combo_run(L2PRessAfterMS);
}
set_val(PS4_RY, 100.0);
} else {
combo_stop(L2PRessAfterMS);
}
}
combo L2PRessAfterMS {
wait(500); // also have after n ms to press the L2 after initiating
set_val(PS4_L2, 100.0);
wait(80);
}
ConsoleTuner Support Team
-
J2Kbr - General of the Army
- Posts: 20323
- Joined: Tue Mar 18, 2014 1:39 pm
Re: This script is from gpc1
J2Kbr wrote:TrayDay wrote:It's it possible to have this script also have after n ms to press the L2 after initiating the above?
Yes, it is possible:
- Code: Select all
#include <ps4.gph>
main {
set_val(PS4_RY, 0.0);
set_val(PS4_SQUARE, 0.0);
if(get_actual(PS4_RY) > 20.0) {
set_val(PS4_SQUARE, 100.0);
}
if(get_actual(PS4_SQUARE)) {
if(event_active(PS4_SQUARE)) {
combo_run(L2PRessAfterMS);
}
set_val(PS4_RY, 100.0);
} else {
combo_stop(L2PRessAfterMS);
}
}
combo L2PRessAfterMS {
wait(500); // also have after n ms to press the L2 after initiating
set_val(PS4_L2, 100.0);
wait(80);
}
Oh thanks!
I didn't know you replied. Apologies!
thanks again!
-
TrayDay - First Sergeant
- Posts: 60
- Joined: Wed Nov 02, 2016 11:12 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 75 guests