a basic script i can't make it to work
5 posts
• Page 1 of 1
a basic script i can't make it to work
hi, i can't figure out how to make this code, all i want it to do when i press left on D-pad (PS4):
here's my failed attempt:
- hold triangle for 1 second
press R1 once
wait two seconds
press triangle once
repeat
here's my failed attempt:
- Code: Select all
#pragma METAINFO("Destiny 2 melee", 1, 0, " ")
#include <titanone.gph>
int onoff;
main
{
if(event_press(PS4_LEFT))
{onoff = !onoff;}
if(onoff){combo_run(melee);
}
}
combo melee
{
set_val(PS4_TRIANGLE, 100);
wait(1000);
set_val(PS4_R1, 100);
wait(1000);
set_val(PS4_TRIANGLE, 0);
wait(1000);
set_val(PS4_R1, 0);
wait(1000);
}
- sporat2012
- Corporal
- Posts: 5
- Joined: Fri May 10, 2019 6:04 am
Re: a basic script i can't make it to work
Are you trying to compile this for the titan one?
Remove this:
Remove this:
- Code: Select all
#pragma METAINFO("Destiny 2 melee", 1, 0, " ")
#include <titanone.gph>
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: a basic script i can't make it to work
i'm not sure what that is but i was trying to modify an existing code i have, i have titan two though
- sporat2012
- Corporal
- Posts: 5
- Joined: Fri May 10, 2019 6:04 am
Re: a basic script i can't make it to work
Try this:
- Code: Select all
#pragma METAINFO("Destiny 2 melee", 1, 0, " ")
#include <ps4.gph>
bool onoff;
main {
if(event_active(PS4_LEFT)) { onoff = !onoff; }
if(onoff) { combo_run(melee); }
}
combo melee {
set_val(PS4_TRIANGLE, 100); // hold triangle for 1 second
wait(1000);
set_val(PS4_R1, 100); // press R1
wait(60);
wait(2000); // wait two seconds
set_val(PS4_TRIANGLE, 100); // press triangle
wait(60);
set_val(PS4_TRIANGLE, 0);
wait(0);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
- Mad
- Major General
- Posts: 4536
- Joined: Wed May 22, 2019 5:39 am
Re: a basic script i can't make it to work
it didn't work the way i wanted, thanks though
- sporat2012
- Corporal
- Posts: 5
- Joined: Fri May 10, 2019 6:04 am
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 36 guests