Playmaker Forum

Playmaker Help & Tips => Playmaker Help => Topic started by: strange_aeons on August 16, 2015, 08:51:02 PM

Title: how can use 360 controller trigger buttons?
Post by: strange_aeons on August 16, 2015, 08: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?
Title: Re: how can use 360 controller trigger buttons?
Post by: 4ppleseed on August 17, 2015, 02: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 (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.
Title: Re: how can use 360 controller trigger buttons?
Post by: strange_aeons on August 17, 2015, 05: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?
Title: Re: how can use 360 controller trigger buttons?
Post by: Chris Vitorino on August 20, 2015, 09:14:52 PM
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