Help with script please

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

Moderators: The_Rabid_Taco, pablosscripts, bonefisher, Baby Cham, Elvish

Help with script please

Postby Flakgreen6 » Tue Sep 17, 2019 3:36 am

I’m trying to make a script for borderlands 3 to afk farm by reviving another player who repeatedly dies on Xbox one but I’m not too great at making scripts and was hoping for some help. I need the script to press and hold x button for 3 seconds then release x button for 3 milliseconds and once again press and hold x for 3 seconds I want this cycle to endlessly repeat. Thanks in advance
User avatar
Flakgreen6
Private First Class
Private First Class
 
Posts: 2
Joined: Tue Sep 17, 2019 3:26 am

Re: Help with script please

Postby DontAtMe » Tue Sep 17, 2019 5:00 am

Code: Select all
define HOLD =       3000; // 3 seconds = 3000 ms
define RELEASE =      10; // 10 ms
 
main {
  combo_run(revie);
}
combo revie {
  set_val(XB1_X, 100);
  wait(HOLD);
  wait(RELEASE);
}
The shortest time interval on the titan one is 10ms. So the release time will be 10ms instead of 3ms.

3ms is way to fast anyways, it would never register in game as an actual release anyways.
User avatar
DontAtMe
Command Sergeant Major
Command Sergeant Major
 
Posts: 158
Joined: Tue Oct 02, 2018 4:49 am

Re: Help with script please

Postby Flakgreen6 » Tue Sep 17, 2019 9:32 pm

Thank you very much
User avatar
Flakgreen6
Private First Class
Private First Class
 
Posts: 2
Joined: Tue Sep 17, 2019 3:26 am


Return to GPC Script Programming (Titan One)

Who is online

Users browsing this forum: MSN [Bot] and 6 guests