Script request please.. simple one (ps4)

GPC1 script programming for Titan One. Code examples, questions, requests.

Script request please.. simple one (ps4)

Postby kiet510 » Wed Jun 24, 2020 4:53 pm

Instructions starts at 2:46 (with controller cam)

https://www.youtube.com/watch?v=Av3MoxawRZw

All I want the script to do is:

I want script to activate if I press R3 button (I want it to turn off If I click R3 button again.) Can I do ON/OFF with same button?

Left Analog Stick > Hold it up ↑
Right Analog Stick > Spam diagonal down left & right, so like this.... ↙ ↘ ↙ ↘ ↙ ↘ ↙ ↘ ↙ ↘
Maybe .3 sec wait between each ↙ .3 second wait ↘

I want left analog stick to hold up while doing the right stick spam at the same time.
User avatar
kiet510
Command Sergeant Major
Command Sergeant Major
 
Posts: 175
Joined: Sat Jan 03, 2015 5:17 am

Re: Script request please.. simple one (ps4)

Postby DontAtMe » Wed Jun 24, 2020 5:49 pm

Give this a try :smile0517:
Code: Select all
int toggle;
main  {
  if (event_press(PS4_R3)) {
    combo_stop(dribble_spam);
    toggle =! toggle;
    if (toggle) combo_run(dribble_spam);
  }
 
  if (combo_running(dribble_spam)) set_val(PS4_LY, -100);
}
 
combo dribble_spam {
  right();
  wait(300);
 
  center();
  wait(50);
 
  left();
  wait(300);
 
  combo_restart(dribble_spam);
  wait(1);
 
}
 
function right() {
  set_val(PS4_RX, 80);
  set_val(PS4_RY, 80);
}
function center() {
  set_val(PS4_RX, 0);
  set_val(PS4_RY, 0);
}
function left() {
  set_val(PS4_RX, -80);
  set_val(PS4_RY, 80);
}
User avatar
DontAtMe
Captain
Captain
 
Posts: 502
Joined: Tue Oct 02, 2018 4:49 am

Re: Script request please.. simple one (ps4)

Postby kiet510 » Thu Jun 25, 2020 4:37 pm

Hello Don, sorry it doesnt work correct for some reason, it keeps wanting to shoot the ball..

Instructions starts at 2:46 (with controller cam)

https://www.youtube.com/watch?v=Av3MoxawRZw

if you dont mind can you just watch 10 seconds of that video to know how to combo this script. I would really appreciate it and ive been trying it all day and cannot get it down, even though it looks so simple..
User avatar
kiet510
Command Sergeant Major
Command Sergeant Major
 
Posts: 175
Joined: Sat Jan 03, 2015 5:17 am

Re: Script request please.. simple one (ps4)

Postby kiet510 » Thu Jun 25, 2020 5:25 pm

nvm guys i got it, i just need to practice more. thanks
User avatar
kiet510
Command Sergeant Major
Command Sergeant Major
 
Posts: 175
Joined: Sat Jan 03, 2015 5:17 am


Return to GPC1 Script Programming

Who is online

Users browsing this forum: Baidu [Spider] and 71 guests