Using Xbox controller and triggercombination

Hi everyone,
i’m french, so please forgive me for my poor english…

i am will implemante a combination system for a game controller like xbox pads.
The purpose of this combination system is that:

  • if player press the left trigger, the buttons A B X Y will have for exemple attack functions
  • if player press the right trigger, the buttons A B X Y will have for exemple defensive functions
  • and if player press the 2 trigger at the same time, the buttons will have other functions.

I would like to know how i can do that? Can i do that with the blueprints?

Thanks a lot, i’m a beginner, i’m searching for advices :slight_smile:

have a nice day!

fbst

Of course.
When you press Left Trigger, change a boolean to true (and false on released)
The same for the Right Trigger (With a different boolean of course).

When you press the XYAB Buttons (Input Actions) check if L and R are pressed.
If Not, check if L is pressed (if so, do your attack functions)
If Not, check if R is pressed (If so, do your Defense functions)
If not, do your actions you do if no trigger is pressed.

Mind the order you check the triggers.

ok cool! i have think about that kind of “algorithm” ! i wasn’t sure that i could do that with blueprint! :slight_smile:
i think i haven’t already understand the power of theses blueprints! :slight_smile:

thank you a lot for your answer!

fbst

hi!

i follow your advice and start to make my blueprint!
all seems to be correct on first sight but i met a weird problem…
here’s my blueprint

when i press the right trigger, it’s ok, the string “Attack Menu” is well dispayed on screen.
When i press the left trigger too.
when i press the 2 trigger on the same time… my first branch is true AND false so it dispay “ULTI MENU” AND “Defensive Menu”…

I don’t see where the problem is… anyone got an idea?

thank you :slight_smile: have a good evening!

EDIT: i forgot to say that the variables “IsLeftTriggerActive, IsRightTriggerActive and IsTwiceTriggerActive” are boolean and have “false” on default value! :slight_smile:

EDIT2: and there is no other inputAction whith these controls on my blueprint, just the starting blueprint on third person mode

You are doing something different than what you explained in your first post.

6c04385da989581453639a55efe504b638a7fcc6.jpeg

hi,

yes i started by the trigger, without the face buttons…

i prepared that on a side of my blueprint because i had this weird true AND false result when i pressed the 2 trigger!
thank you for your help Raildex_ !
it will help me :slight_smile:
have a nice day!