Show / Hide Table of Contents

Class EnemySounds

Example enemy sounds component. Handles attract and attack sounds.

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
EnemySounds
Namespace: DaggerfallWorkshop.Game
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(DaggerfallAudioSource))]
public class EnemySounds : MonoBehaviour

Fields

| Improve this Doc View Source

AttackSound

Declaration
public SoundClips AttackSound
Field Value
Type Description
SoundClips
| Improve this Doc View Source

AttractRadius

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

BarkSound

Declaration
public SoundClips BarkSound
Field Value
Type Description
SoundClips
| Improve this Doc View Source

LinearRolloff

Declaration
public bool LinearRolloff
Field Value
Type Description
Boolean
| Improve this Doc View Source

MaxAttractDelay

Declaration
public int MaxAttractDelay
Field Value
Type Description
Int32
| Improve this Doc View Source

MinAttractDelay

Declaration
public int MinAttractDelay
Field Value
Type Description
Int32
| Improve this Doc View Source

MoveSound

Declaration
public SoundClips MoveSound
Field Value
Type Description
SoundClips
| Improve this Doc View Source

MuteHumanSounds

Declaration
public bool MuteHumanSounds
Field Value
Type Description
Boolean
| Improve this Doc View Source

RaceForSounds

Declaration
public Races RaceForSounds
Field Value
Type Description
Races
| Improve this Doc View Source

SoundsFromMobile

Declaration
public bool SoundsFromMobile
Field Value
Type Description
Boolean

Methods

| Improve this Doc View Source

PlayAttackSound()

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

PlayCombatVoice(Genders, Boolean, Boolean)

Declaration
public void PlayCombatVoice(Genders gender, bool isAttack, bool heavyDamage = false)
Parameters
Type Name Description
Genders gender
Boolean isAttack
Boolean heavyDamage
| Improve this Doc View Source

PlayHitSound(DaggerfallUnityItem)

Declaration
public void PlayHitSound(DaggerfallUnityItem weapon)
Parameters
Type Name Description
DaggerfallUnityItem weapon
| Improve this Doc View Source

PlayMissSound(DaggerfallUnityItem)

Declaration
public void PlayMissSound(DaggerfallUnityItem weapon)
Parameters
Type Name Description
DaggerfallUnityItem weapon
| Improve this Doc View Source

PlayParrySound()

Declaration
public void PlayParrySound()

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