Climb Ability (WIP)

macusernick

New member
UPDATED 5/3/2021

There are many posts tackling the Climbing issue and I'd like to share my thoughts and work. I use an IClimbSource interface to allow customization for each type of use for the ability. I've included very basic code for climbing on a Pole/Ladder/etc. Please note that you need to setup the Animations like the Drive animation as well (use 114 for the animation index). Also make sure to add 2 MoveTowardsLocation (for the top and bottom) and Tag them "ClimbTop" and "ClimbBottom".
 

Attachments

  • 1620069740691.png
    1620069740691.png
    115.3 KB · Views: 3
  • 1620069785016.png
    1620069785016.png
    8.7 KB · Views: 3
  • 1620069791763.png
    1620069791763.png
    12.4 KB · Views: 3
Last edited:

macusernick

New member
UPDATED 5/3/2021 - I have updated the code a bit to be more generic and to use MoveToLocations rather then empty GameObjects for the start/finish position. I'll update the rest of this post with the new details as well.

Here is the code!
 

Attachments

  • BasicClimbSource.cs
    5.4 KB · Views: 2
  • Climb.cs
    18.4 KB · Views: 3
  • IClimbSource.cs
    1.6 KB · Views: 2
Last edited:
Top