Show / Hide Table of Contents

Class DaggerfallAction

Defines and executes Daggerfall action records.

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

Fields

| Improve this Doc View Source

ActionAxisRawValue

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

ActionDuration

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

ActionEnabled

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

ActionFlag

Declaration
public DFBlock.RdbActionFlags ActionFlag
Field Value
Type Description
DFBlock.RdbActionFlags
| Improve this Doc View Source

ActionRotation

Declaration
public Vector3 ActionRotation
Field Value
Type Description
Vector3
| Improve this Doc View Source

ActionSpace

Declaration
public Space ActionSpace
Field Value
Type Description
Space
| Improve this Doc View Source

ActionTranslation

Declaration
public Vector3 ActionTranslation
Field Value
Type Description
Vector3
| Improve this Doc View Source

activationCount

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

ANSWER_TEXT_INDEX

Declaration
public const int ANSWER_TEXT_INDEX = 5656
Field Value
Type Description
Int32
| Improve this Doc View Source

Index

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

Magnitude

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

ModelDescription

Declaration
public string ModelDescription
Field Value
Type Description
String
| Improve this Doc View Source

NextObject

Declaration
public GameObject NextObject
Field Value
Type Description
GameObject
| Improve this Doc View Source

PlaySound

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

PreviousObject

Declaration
public GameObject PreviousObject
Field Value
Type Description
GameObject
| Improve this Doc View Source

TriggerFlag

Declaration
public DFBlock.RdbTriggerFlags TriggerFlag
Field Value
Type Description
DFBlock.RdbTriggerFlags
| Improve this Doc View Source

TYPE_11_TEXT_INDEX

Declaration
public const int TYPE_11_TEXT_INDEX = 8600
Field Value
Type Description
Int32
| Improve this Doc View Source

TYPE_12_TEXT_INDEX

Declaration
public const int TYPE_12_TEXT_INDEX = 5400
Field Value
Type Description
Int32
| Improve this Doc View Source

TYPE_99_TEXT_INDEX

Declaration
public const int TYPE_99_TEXT_INDEX = 7700
Field Value
Type Description
Int32
| Improve this Doc View Source

type12_answers

Declaration
public string[] type12_answers
Field Value
Type Description
String[]

Properties

| Improve this Doc View Source

Cooldown

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

CurrentState

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

Duration

Gets the actual duration for timed actions.

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

IsFlat

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

IsMoving

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

LoadID

Declaration
public ulong LoadID { get; set; }
Property Value
Type Description
UInt64
| Improve this Doc View Source

StartingPosition

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

StartingRotation

Declaration
public Quaternion StartingRotation { get; }
Property Value
Type Description
Quaternion

Methods

| Improve this Doc View Source

Activate(GameObject, DaggerfallAction)

30 Just activates next object in chain.

Declaration
public static void Activate(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

CastSpell(GameObject, DaggerfallAction)

9 Creates spell. Use Action's index to get the spell by index from Spells.STD

Declaration
public static void CastSpell(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

CloseDoor(GameObject, DaggerfallAction)

20 Closes door on activate. If door has a starting lock value, will re-lock door.

Declaration
public static void CloseDoor(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

DoorText(GameObject, DaggerfallAction)

32 Shows text at the top of the screen when player clicks on associated door in info mode.

Declaration
public static void DoorText(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

DrainHealth(GameObject, DaggerfallAction)

22-25 Damages players health every hit

Declaration
public static void DrainHealth(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

DrainHealth21(GameObject, DaggerfallAction)

21 Damages players health, uses random range and activates sporadically.

Declaration
public static void DrainHealth21(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

DrainMagicka(GameObject, DaggerfallAction)

28 Drains Magicka Only on models in vanilla daggerfall (usually on bottom of pits, drains magica while you walk around)

Declaration
public static void DrainMagicka(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

GetDoor(GameObject, out DaggerfallActionDoor)

Used by door actions (open / close / unlock), tries to get DaggerfallActionDoor from object returns true if object is a valid action door, false if not

Declaration
public static bool GetDoor(GameObject go, out DaggerfallActionDoor door)
Parameters
Type Name Description
GameObject go
DaggerfallActionDoor door
Returns
Type Description
Boolean
| Improve this Doc View Source

GetPlayer(out GameObject, out PlayerEntity)

Declaration
public static bool GetPlayer(out GameObject playerObject, out PlayerEntity playerEntity)
Parameters
Type Name Description
GameObject playerObject
PlayerEntity playerEntity
Returns
Type Description
Boolean
| Improve this Doc View Source

IsPlaying()

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

LockDoor(GameObject, DaggerfallAction)

16 Locks door when activated. Lock value used is unknown

Declaration
public static void LockDoor(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

Move(GameObject, DaggerfallAction)

1-8 Handles translation / rotation type actions.

Declaration
public static void Move(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

OpenDoor(GameObject, DaggerfallAction)

18 Opens (and unlocks if is locked) door

Declaration
public static void OpenDoor(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

Play(GameObject)

Declaration
public void Play(GameObject prev)
Parameters
Type Name Description
GameObject prev
| Improve this Doc View Source

Poison(GameObject, DaggerfallAction)

26 Seems to poison / infect player.

Declaration
public static void Poison(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

RaiseOnTeleportActionEvent(GameObject, GameObject)

Declaration
protected static void RaiseOnTeleportActionEvent(GameObject triggerObj, GameObject nextObj)
Parameters
Type Name Description
GameObject triggerObj
GameObject nextObj
| Improve this Doc View Source

Receive(GameObject, DaggerfallAction.TriggerTypes)

Declaration
public void Receive(GameObject prev = null, DaggerfallAction.TriggerTypes triggerType = DaggerfallAction.TriggerTypes.ActionObject)
Parameters
Type Name Description
GameObject prev
DaggerfallAction.TriggerTypes triggerType
| Improve this Doc View Source

RestartTween(Single)

Restarts a tween in progress. For exmaple, if restoring from save.

Declaration
public void RestartTween(float durationScale = 1F)
Parameters
Type Name Description
Single durationScale
| Improve this Doc View Source

SetGlobalVar(GameObject, DaggerfallAction)

31 Sets global variable in quest system.

Declaration
public static void SetGlobalVar(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

SetState(ActionState)

Declaration
public void SetState(ActionState state)
Parameters
Type Name Description
ActionState state
| Improve this Doc View Source

ShowText(GameObject, DaggerfallAction)

11 Pop-up text

Declaration
public static void ShowText(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

ShowTextWithInput(GameObject, DaggerfallAction)

12 Pop-up text that returns player input

Declaration
public static void ShowTextWithInput(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

Teleport(GameObject, DaggerfallAction)

14 Teleports player to next object position.

Declaration
public static void Teleport(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

UnlockDoor(GameObject, DaggerfallAction)

17 Unlocks a door

Declaration
public static void UnlockDoor(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
Type Name Description
GameObject triggerObj
DaggerfallAction thisAction
| Improve this Doc View Source

UserInputHandler(DaggerfallInputMessageBox, String)

Handles the input return event for action type 12

Declaration
public void UserInputHandler(DaggerfallInputMessageBox sender, string userInput)
Parameters
Type Name Description
DaggerfallInputMessageBox sender
String userInput

Events

| Improve this Doc View Source

OnTeleportAction

Declaration
public static event DaggerfallAction.OnTeleportActionEventHandler OnTeleportAction
Event Type
Type Description
DaggerfallAction.OnTeleportActionEventHandler

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