Show / Hide Table of Contents

Class PlayerHeightChanger

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
PlayerHeightChanger
Namespace: DaggerfallWorkshop.Game
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(PlayerMotor))]
[RequireComponent(typeof(CharacterController))]
[RequireComponent(typeof(HeadBobber))]
[RequireComponent(typeof(LevitateMotor))]
public class PlayerHeightChanger : MonoBehaviour

Fields

| Improve this Doc View Source

controllerCrouchHeight

Declaration
public const float controllerCrouchHeight = 0.9F
Field Value
Type Description
Single
| Improve this Doc View Source

controllerRideHeight

Declaration
public const float controllerRideHeight = 2.6F
Field Value
Type Description
Single
| Improve this Doc View Source

controllerStandingHeight

Declaration
public const float controllerStandingHeight = 1.8F
Field Value
Type Description
Single
| Improve this Doc View Source

controllerSwimHeight

Declaration
public const float controllerSwimHeight = 0.3F
Field Value
Type Description
Single
| Improve this Doc View Source

controllerSwimHorseDisplacement

Declaration
public const float controllerSwimHorseDisplacement = 0.3F
Field Value
Type Description
Single
| Improve this Doc View Source

eyeHeight

Declaration
public const float eyeHeight = 0.09F
Field Value
Type Description
Single

Properties

| Improve this Doc View Source

CurrentControllerStandingHeight

Declaration
public float CurrentControllerStandingHeight { get; }
Property Value
Type Description
Single
| Improve this Doc View Source

FixedControllerStandingHeight

Declaration
public float FixedControllerStandingHeight { get; }
Property Value
Type Description
Single
| Improve this Doc View Source

ForcedSwimCrouch

Declaration
public bool ForcedSwimCrouch { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

HeightAction

Declaration
public HeightChangeAction HeightAction { get; set; }
Property Value
Type Description
HeightChangeAction
| Improve this Doc View Source

IsInWaterTile

Declaration
public bool IsInWaterTile { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

StandingHeightAdjustment

Declaration
public float StandingHeightAdjustment { get; set; }
Property Value
Type Description
Single

Methods

| Improve this Doc View Source

DecideHeightAction()

Determines what Height-changing action should be taken based on player's input and PlayerMotor.IsRiding

Declaration
public void DecideHeightAction()

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX