Show / Hide Table of Contents

Class DaggerfallEntityBehaviour

Hosts DaggerfallEntity for living GameObjects.

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

Fields

| Improve this Doc View Source

EntityType

Declaration
public EntityTypes EntityType
Field Value
Type Description
EntityTypes

Properties

| Improve this Doc View Source

CorpseLootContainer

Gets or sets reference to loot container spawned at time of entity death.

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

Entity

Gets entity as PlayerEntity.

Declaration
public DaggerfallEntity Entity { get; set; }
Property Value
Type Description
DaggerfallEntity

Methods

| Improve this Doc View Source

DamageFatigueFromSource(DaggerfallEntityBehaviour, Int32, Boolean)

Cause fatigue damage to entity with additional logic.

Declaration
public void DamageFatigueFromSource(DaggerfallEntityBehaviour sourceEntityBehaviour, int amount, bool assignMultiplier = false)
Parameters
Type Name Description
DaggerfallEntityBehaviour sourceEntityBehaviour

Source entity behaviour.

Int32 amount

Amount to damage fatigue.

Boolean assignMultiplier

Optionally assign fatigue multiplier.

| Improve this Doc View Source

DamageFatigueFromSource(IEntityEffect, Int32, Boolean)

Cause fatigue damage to entity with additional logic.

Declaration
public void DamageFatigueFromSource(IEntityEffect sourceEffect, int amount, bool assignMultiplier = false)
Parameters
Type Name Description
IEntityEffect sourceEffect

Source effect.

Int32 amount

Amount to damage fatigue.

Boolean assignMultiplier

Optionally assign fatigue multiplier.

| Improve this Doc View Source

DamageHealthFromSource(DaggerfallEntityBehaviour, Int32, Boolean, Vector3)

Cause damage to entity health with additional logic.

Declaration
public void DamageHealthFromSource(DaggerfallEntityBehaviour sourceEntityBehaviour, int amount, bool showBlood, Vector3 bloodPosition)
Parameters
Type Name Description
DaggerfallEntityBehaviour sourceEntityBehaviour

Source entity behaviour.

Int32 amount

Amount to damage health.

Boolean showBlood

Show blood splash.

Vector3 bloodPosition

Blood splash position.

| Improve this Doc View Source

DamageHealthFromSource(IEntityEffect, Int32, Boolean, Vector3)

Cause damage to entity health with additional logic.

Declaration
public void DamageHealthFromSource(IEntityEffect sourceEffect, int amount, bool showBlood, Vector3 bloodPosition)
Parameters
Type Name Description
IEntityEffect sourceEffect

Source effect.

Int32 amount

Amount to damage health.

Boolean showBlood

Show blood splash.

Vector3 bloodPosition

Blood splash position.

| Improve this Doc View Source

DamageMagickaFromSource(DaggerfallEntityBehaviour, Int32)

Cause spell point damage to entity with additional logic.

Declaration
public void DamageMagickaFromSource(DaggerfallEntityBehaviour sourceEntityBehaviour, int amount)
Parameters
Type Name Description
DaggerfallEntityBehaviour sourceEntityBehaviour

Source entity behaviour.

Int32 amount

Amount to damage spell points.

| Improve this Doc View Source

DamageMagickaFromSource(IEntityEffect, Int32)

Cause spell point damage to entity with additional logic.

Declaration
public void DamageMagickaFromSource(IEntityEffect sourceEffect, int amount)
Parameters
Type Name Description
IEntityEffect sourceEffect

Source effect.

Int32 amount

Amount to damage spell points.

| Improve this Doc View Source

HandleAttackFromSource(DaggerfallEntityBehaviour)

Handle shared logic when player attacks entity.

Declaration
public void HandleAttackFromSource(DaggerfallEntityBehaviour sourceEntityBehaviour)
Parameters
Type Name Description
DaggerfallEntityBehaviour sourceEntityBehaviour

Events

| Improve this Doc View Source

OnSetEntity

Declaration
public event DaggerfallEntityBehaviour.OnSetEntityHandler OnSetEntity
Event Type
Type Description
DaggerfallEntityBehaviour.OnSetEntityHandler

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
  • Fields
    • EntityType
  • Properties
    • CorpseLootContainer
    • Entity
  • Methods
    • DamageFatigueFromSource(DaggerfallEntityBehaviour, Int32, Boolean)
    • DamageFatigueFromSource(IEntityEffect, Int32, Boolean)
    • DamageHealthFromSource(DaggerfallEntityBehaviour, Int32, Boolean, Vector3)
    • DamageHealthFromSource(IEntityEffect, Int32, Boolean, Vector3)
    • DamageMagickaFromSource(DaggerfallEntityBehaviour, Int32)
    • DamageMagickaFromSource(IEntityEffect, Int32)
    • HandleAttackFromSource(DaggerfallEntityBehaviour)
  • Events
    • OnSetEntity
  • Extension Methods
Back to top Generated by DocFX