Class ClimbingMotor
Inheritance
ClimbingMotor
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(PlayerMotor))]
[RequireComponent(typeof(LevitateMotor))]
[RequireComponent(typeof(CharacterController))]
public class ClimbingMotor : MonoBehaviour
Properties
|
Improve this Doc
View Source
ClimbQuitMoveUnderToHang
True if player just initiated climbing under wall to hang from ceiling beneath
Declaration
public bool ClimbQuitMoveUnderToHang { get; }
Property Value
|
Improve this Doc
View Source
IsClimbing
Declaration
public bool IsClimbing { get; set; }
Property Value
|
Improve this Doc
View Source
IsSlipping
true if player is climbing but trying to regain hold of wall
Declaration
public bool IsSlipping { get; }
Property Value
|
Improve this Doc
View Source
WallEject
True if player just jumped from a wall
Declaration
public bool WallEject { get; }
Property Value
|
Improve this Doc
View Source
WallGrabDirection
Declaration
public Vector3 WallGrabDirection { get; }
Property Value
|
Improve this Doc
View Source
WasClimbing
Declaration
public bool WasClimbing { get; }
Property Value
Methods
|
Improve this Doc
View Source
ClimbingCheck()
Perform climbing check, and if successful, start climbing movement.
Declaration
public void ClimbingCheck()
|
Improve this Doc
View Source
ClimbingSkillCheck(Int32)
See if the player can pass a climbing skill check
Declaration
public bool ClimbingSkillCheck(int basePercentSuccess)
Parameters
Type |
Name |
Description |
Int32 |
basePercentSuccess |
|
Returns
Type |
Description |
Boolean |
true if player passed climbing skill check
|
|
Improve this Doc
View Source
GetSaveData()
Declaration
public AdvancedClimbingData_v1 GetSaveData()
Returns
|
Improve this Doc
View Source
RestoreSaveData(AdvancedClimbingData_v1)
Declaration
public void RestoreSaveData(AdvancedClimbingData_v1 data)
Parameters
|
Improve this Doc
View Source
StopClimbing(Boolean)
Declaration
public void StopClimbing(bool fromHanging = false)
Parameters
Type |
Name |
Description |
Boolean |
fromHanging |
|
Extension Methods
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)