Show / Hide Table of Contents

Class MobilePersonMotor

Drives mobile NPCs around town exteriors using the local navgrid.

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
MobilePersonMotor
Namespace: DaggerfallWorkshop.Game
Assembly: Assembly-CSharp.dll
Syntax
public class MobilePersonMotor : MonoBehaviour

Fields

| Improve this Doc View Source

cityNavigation

Declaration
public CityNavigation cityNavigation
Field Value
Type Description
CityNavigation

Properties

| Improve this Doc View Source

CurrentDirection

Gets current mobile facing and direction of movement.

Declaration
public MobilePersonMotor.MobileDirection CurrentDirection { get; }
Property Value
Type Description
MobilePersonMotor.MobileDirection
| Improve this Doc View Source

CurrentState

Gets current mobile state.

Declaration
public MobilePersonMotor.MobileStates CurrentState { get; }
Property Value
Type Description
MobilePersonMotor.MobileStates
| Improve this Doc View Source

DistanceToPlayer

Gets last observed distance between this mobile and player.

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

DistanceToTarget

Gets distance remaining to target in scene.

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

LastState

Gets last mobile state.

Declaration
public MobilePersonMotor.MobileStates LastState { get; }
Property Value
Type Description
MobilePersonMotor.MobileStates
| Improve this Doc View Source

MobileAsset

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

MoveCount

Gets total number of times this mobile has moved to a new time. This count is reset when mobile is recycled.

Declaration
public int MoveCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

SeekCount

Gets consecutive number of times this mobile has searched for a new tile. This count is reset every time mobile moves to a new tile.

Declaration
public int SeekCount { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

TargetScenePosition

Gets target scene position. If this is Vector3.zero then mobile is not properly on grid.

Declaration
public Vector3 TargetScenePosition { get; }
Property Value
Type Description
Vector3

Methods

| Improve this Doc View Source

ClearMotor()

Clear motor when deactivating.

Declaration
public void ClearMotor()
| Improve this Doc View Source

InitMotor()

Initialise motor when activating.

Declaration
public void InitMotor()

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