Help with loot script APEX LEGENDS

GPC2 script programming for Titan Two. Code examples, questions, requests.

Help with loot script APEX LEGENDS

Postby arerated » Fri Feb 15, 2019 12:55 am

What i am trying to accomplish is a script that spams x when i click and hold it, for when i am looting. So I do not have to repeatedly hit it. thank you in advance
User avatar
arerated
Sergeant
Sergeant
 
Posts: 6
Joined: Tue Jul 03, 2018 3:31 pm

Re: Help with loot script APEX LEGENDS

Postby teckx » Fri Feb 15, 2019 12:28 pm

thats pretty much ADS spam. just change from ADS button to X
User avatar
teckx
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 194
Joined: Tue Mar 27, 2018 1:53 pm

Re: Help with loot script APEX LEGENDS

Postby arerated » Fri Feb 15, 2019 2:07 pm

i appreciate the reply! im a novice at all of this and not sure where to start as im just used to just loading in a gamepack.
User avatar
arerated
Sergeant
Sergeant
 
Posts: 6
Joined: Tue Jul 03, 2018 3:31 pm

Re: Help with loot script APEX LEGENDS

Postby Scachi » Fri Feb 15, 2019 3:18 pm

Take a look here for basic IDE usage: https://www.consoletuner.com/wiki/index ... _scripting
This subpage contains some examples: https://www.consoletuner.com/wiki/index ... examples_1
User avatar
Scachi
Brigadier General
Brigadier General
 
Posts: 3044
Joined: Wed May 11, 2016 6:25 am
Location: Germany

Re: Help with loot script APEX LEGENDS

Postby bonefisher » Fri Feb 15, 2019 3:47 pm

I was looking into this shortly but I think you can benefit from a solid hold for length of time long as stick is active....This will help with revive and respawn also!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: Help with loot script APEX LEGENDS

Postby ycksy » Sat Feb 16, 2019 12:07 pm

Dont forget weapon swapping requires you to hold X to change. Dont want to disable your ability to do that.
User avatar
ycksy
First Sergeant
First Sergeant
 
Posts: 43
Joined: Tue Aug 28, 2018 3:07 pm

Re: Help with loot script APEX LEGENDS

Postby alanmcgregor » Sat Feb 16, 2019 6:13 pm

"A Tap-n-Hold" might work.

So: you tap and hold Square|X and Square|X will be spam until released.

This way you can use regularly Square|X to reload, change weapons and revive teammates.

Code: Select all
 
#pragma METAINFO("Apex Legends - AutoLoot", 1, 0, "AlanMcGregor")
 
//BUTTONS
#define RELOAD (BUTTON_17)
 
//DELAYS
#define MaxTimeRelease 160
#define ShortDelay 40
 
//TRACKERS
bool doubleRELOAD;
 
main{
 
// Press and Hold RELOAD to AutoLoot
    if(event_active(RELOAD) && time_release(RELOAD) < MaxTimeRelease) {
        doubleRELOAD = TRUE;
    }
    else
        if(event_release(RELOAD)) {
            doubleRELOAD = FALSE;
        }
        if(doubleRELOAD) {
            combo_run(AutoLoot);
        }
        else
            combo_stop(AutoLoot);           
}
 
combo AutoLoot{
    set_val(RELOAD, 100.0);
    wait(ShortDelay);
    set_val(RELOAD, 0.0);
    wait(ShortDelay);
    set_val(RELOAD, 0.0);
}
 
User avatar
alanmcgregor
Major
Major
 
Posts: 981
Joined: Tue Mar 27, 2018 8:38 am

Re: Help with loot script APEX LEGENDS

Postby bonefisher » Sat Feb 16, 2019 8:52 pm

You don't need to rapid it …..runs perfect solid!
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: Help with loot script APEX LEGENDS

Postby alanmcgregor » Sun Feb 17, 2019 4:55 am

I liked it! I hoard up the loot effortlessly and faster than everyone else.

I added to my basic script :) hehe.
User avatar
alanmcgregor
Major
Major
 
Posts: 981
Joined: Tue Mar 27, 2018 8:38 am

Re: Help with loot script APEX LEGENDS

Postby Derivates » Mon Feb 18, 2019 3:50 pm

alanmcgregor wrote:I liked it! I hoard up the loot effortlessly and faster than everyone else.

I added to my basic script :) hehe.

Thanks for the script, tap and hold opens my mind to a new level of coding.
User avatar
Derivates
Sergeant Major
Sergeant Major
 
Posts: 75
Joined: Sat Jan 19, 2019 6:15 pm

Next

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 108 guests