LadderState
LadderState allows the actor to climb ladders. Note that, at the moment, ladders must be positioned so that the actor only touches one ladder at a time.
Public Methods
public void Drop()
Makes the actor drop from any ladders they’re currently climbing.
public float GetDistanceFromTop()
Gets the distance from the actor to the top of the ladder they’re currently climbing. Used primarily by EnemyAI to aid it in dismounting ladders.
public float GetDistanceFromBottom()
Gets the distance from the actor to the bottom of the ladder they’re currently climbing. Used primarily by EnemyAI to aid it in dismounting ladders.
Public Members
public const string idString = “ClimbingLadder”
public float climbSpeed
The speed with which the actor will climb ladders.
public bool canTurn
Whether or not the actor can turn around horizontally while climbing a ladder.
public Animations animations
Allows you to slot two additional animations for ladder climbing: Moving, for while the actor is moving up or down the ladder, and Cresting, for when the actor is at the very top of the ladder but hasn’t yet exited the climb.
public OnJump onJump
This determines what happens when the player presses the Jump key while climbing a ladder. Can be set to either Drop or Jump.