Is it possible to make a custom GetAxis, and if so, how?

Updated on November 26, 2017 in [A] Unity Scripting
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on November 24, 2017

I’m working on a First Person Shooter. Arcadey, but tactical.

In First Person Shooters like Rainbow Six Siege and Battlefield 4, the player can lean to either his left or his right. This can be achieved by making a variable equal to a GetAxis, then rotating the player’s Z axis to said GetAxis.

How (in C#) can I make that GetAxis?

 

Dang I said GetAxis a lot,

Another dog

  • Liked by
Reply
0 on November 26, 2017

Add the Axis in the Input Settings. If that’s not what you want, be more clear.

  • Liked by
Reply
Cancel