Show / Hide Table of Contents

Class EnemySenses

Example enemy senses.

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

Fields

| Improve this Doc View Source

FieldOfView

Declaration
public float FieldOfView
Field Value
Type Description
Single
| Improve this Doc View Source

HearingRadius

Declaration
public float HearingRadius
Field Value
Type Description
Single
| Improve this Doc View Source

ResetPlayerPos

Declaration
public static readonly Vector3 ResetPlayerPos
Field Value
Type Description
Vector3
| Improve this Doc View Source

SightRadius

Declaration
public float SightRadius
Field Value
Type Description
Single

Properties

| Improve this Doc View Source

DetectedTarget

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

DirectionToTarget

Declaration
public Vector3 DirectionToTarget { get; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

DistanceToDoor

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

DistanceToPlayer

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

DistanceToTarget

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

HasEncounteredPlayer

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

LastKnownDoor

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

LastKnownTargetPos

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

LastPositionDiff

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

OldLastKnownTargetPos

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

PredictedTargetPos

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

QuestBehaviour

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

SecondaryTarget

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

Target

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

TargetInEarshot

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

TargetInSight

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

TargetRateOfApproach

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

WouldBeSpawnedInClassic

Declaration
public bool WouldBeSpawnedInClassic { get; set; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

BlockedByIllusionEffect()

Declaration
public bool BlockedByIllusionEffect()
Returns
Type Description
Boolean
| Improve this Doc View Source

PredictNextTargetPos(Single)

Declaration
public Vector3 PredictNextTargetPos(float interceptSpeed)
Parameters
Type Name Description
Single interceptSpeed
Returns
Type Description
Vector3
| Improve this Doc View Source

StealthCheck()

Declaration
public bool StealthCheck()
Returns
Type Description
Boolean
| Improve this Doc View Source

TargetHasBackTurned()

Declaration
public bool TargetHasBackTurned()
Returns
Type Description
Boolean
| Improve this Doc View Source

TargetIsAbove()

Declaration
public bool TargetIsAbove()
Returns
Type Description
Boolean
| Improve this Doc View Source

TargetIsWithinPitchAngle(Single)

Declaration
public bool TargetIsWithinPitchAngle(float targetAngle)
Parameters
Type Name Description
Single targetAngle
Returns
Type Description
Boolean
| Improve this Doc View Source

TargetIsWithinYawAngle(Single, Vector3)

Declaration
public bool TargetIsWithinYawAngle(float targetAngle, Vector3 targetPos)
Parameters
Type Name Description
Single targetAngle
Vector3 targetPos
Returns
Type Description
Boolean

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