playMaker

Author Topic: how can use 360 controller trigger buttons?  (Read 5027 times)

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
how can use 360 controller trigger buttons?
« on: August 16, 2015, 11:51:02 PM »
can anyone help me work this out?, i want to setup so that when i press 360 controller triggers they do things like make the character sprint or crawl. i understand that they work differently to the other buttons, because they are axis, so how could i achieve these results and what actions would do that?

4ppleseed

  • Full Member
  • ***
  • Posts: 226
Re: how can use 360 controller trigger buttons?
« Reply #1 on: August 17, 2015, 05:25:57 AM »
You can define INPUT from the Unity settings Menu.

Then in Playmaker, if you use Get Key Down etc and there's a huge drop down list, right at the bottom are all the controller buttons, the numbers match up to the list here:

http://wiki.unity3d.com/index.php?title=Xbox360Controller

and for the Axis use Playmaker's Get Axis (make sure it's defined in the settings menu in Unity first) and use the vector information to control your player.

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
Re: how can use 360 controller trigger buttons?
« Reply #2 on: August 17, 2015, 08:43:07 AM »
on the link you give, the triggers are listed as axis and i dont see any axis appear in the huge drop down list you get with the Get Key Down action. unless if all those joystick button 0-19s are both buttons and axis.

shouldn't it be Get Axis Vector to use the 360 triggers?

Chris Vitorino

  • Playmaker Newbie
  • *
  • Posts: 14
Re: how can use 360 controller trigger buttons?
« Reply #3 on: August 21, 2015, 12:14:52 AM »
I had the exact same problem. I've found a solution for it, posted it here: http://hutonggames.com/playmakerforum/index.php?topic=10997.0