help making a script

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

help making a script

Postby tron01 » Thu Feb 11, 2021 11:50 am

hey need help with a simple script for eso

looking for when i press a skill to block cancel the animation
using xbox controller
skills buttons are RB and Y and to block is RT
toggle script with LT AND R3 pressed at same time

if i press RB OR Y wait 500ms and then press RT
THANKS :)
User avatar
tron01
Sergeant First Class
Sergeant First Class
 
Posts: 23
Joined: Sat Dec 01, 2018 10:34 pm

Re: help making a script

Postby Mad » Fri Feb 12, 2021 2:45 am

Code: Select all
#include <xb1.gph>
main {
    if(event_active(XB1_RB) || event_active(XB1_Y)) {
        combo_run(block);
    }
}
combo block {
    wait(500);
    set_val(XB1_RT, 100);
    wait(60);
}
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am


Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 127 guests

cron