Class DaggerfallAction
Defines and executes Daggerfall action records.
Inheritance
DaggerfallAction
Assembly: Assembly-CSharp.dll
Syntax
public class DaggerfallAction : MonoBehaviour
Fields
|
Improve this Doc
View Source
ActionAxisRawValue
Declaration
public int ActionAxisRawValue
Field Value
|
Improve this Doc
View Source
ActionDuration
Declaration
public float ActionDuration
Field Value
|
Improve this Doc
View Source
ActionEnabled
Declaration
public bool ActionEnabled
Field Value
|
Improve this Doc
View Source
ActionFlag
Declaration
public DFBlock.RdbActionFlags ActionFlag
Field Value
|
Improve this Doc
View Source
ActionRotation
Declaration
public Vector3 ActionRotation
Field Value
|
Improve this Doc
View Source
ActionSpace
Declaration
Field Value
|
Improve this Doc
View Source
ActionTranslation
Declaration
public Vector3 ActionTranslation
Field Value
|
Improve this Doc
View Source
activationCount
Declaration
public int activationCount
Field Value
|
Improve this Doc
View Source
ANSWER_TEXT_INDEX
Declaration
public const int ANSWER_TEXT_INDEX = 5656
Field Value
|
Improve this Doc
View Source
Index
Declaration
Field Value
|
Improve this Doc
View Source
Magnitude
Declaration
Field Value
|
Improve this Doc
View Source
ModelDescription
Declaration
public string ModelDescription
Field Value
|
Improve this Doc
View Source
NextObject
Declaration
public GameObject NextObject
Field Value
|
Improve this Doc
View Source
PlaySound
Declaration
Field Value
|
Improve this Doc
View Source
PreviousObject
Declaration
public GameObject PreviousObject
Field Value
|
Improve this Doc
View Source
TriggerFlag
Declaration
public DFBlock.RdbTriggerFlags TriggerFlag
Field Value
|
Improve this Doc
View Source
TYPE_11_TEXT_INDEX
Declaration
public const int TYPE_11_TEXT_INDEX = 8600
Field Value
|
Improve this Doc
View Source
TYPE_12_TEXT_INDEX
Declaration
public const int TYPE_12_TEXT_INDEX = 5400
Field Value
|
Improve this Doc
View Source
TYPE_99_TEXT_INDEX
Declaration
public const int TYPE_99_TEXT_INDEX = 7700
Field Value
|
Improve this Doc
View Source
type12_answers
Declaration
public string[] type12_answers
Field Value
Properties
|
Improve this Doc
View Source
Cooldown
Declaration
public float Cooldown { get; set; }
Property Value
|
Improve this Doc
View Source
CurrentState
Declaration
public ActionState CurrentState { get; set; }
Property Value
|
Improve this Doc
View Source
Duration
Gets the actual duration for timed actions.
Declaration
public float Duration { get; }
Property Value
|
Improve this Doc
View Source
IsFlat
Declaration
public bool IsFlat { get; set; }
Property Value
|
Improve this Doc
View Source
IsMoving
Declaration
public bool IsMoving { get; }
Property Value
|
Improve this Doc
View Source
LoadID
Declaration
public ulong LoadID { get; set; }
Property Value
|
Improve this Doc
View Source
StartingPosition
Declaration
public Vector3 StartingPosition { get; }
Property Value
|
Improve this Doc
View Source
StartingRotation
Declaration
public Quaternion StartingRotation { get; }
Property Value
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
Returns
|
Improve this Doc
View Source
GetPlayer(out GameObject, out PlayerEntity)
Declaration
public static bool GetPlayer(out GameObject playerObject, out PlayerEntity playerEntity)
Parameters
Returns
|
Improve this Doc
View Source
IsPlaying()
Declaration
Returns
|
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
|
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
|
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
|
Improve this Doc
View Source
Play(GameObject)
Declaration
public void Play(GameObject prev)
Parameters
|
Improve this Doc
View Source
Poison(GameObject, DaggerfallAction)
26
Seems to poison / infect player.
Declaration
public static void Poison(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
|
Improve this Doc
View Source
RaiseOnTeleportActionEvent(GameObject, GameObject)
Declaration
protected static void RaiseOnTeleportActionEvent(GameObject triggerObj, GameObject nextObj)
Parameters
|
Improve this Doc
View Source
Receive(GameObject, DaggerfallAction.TriggerTypes)
Declaration
public void Receive(GameObject prev = null, DaggerfallAction.TriggerTypes triggerType = DaggerfallAction.TriggerTypes.ActionObject)
Parameters
|
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
|
Improve this Doc
View Source
SetState(ActionState)
Declaration
public void SetState(ActionState state)
Parameters
|
Improve this Doc
View Source
ShowText(GameObject, DaggerfallAction)
Declaration
public static void ShowText(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
|
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
|
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
|
Improve this Doc
View Source
UnlockDoor(GameObject, DaggerfallAction)
Declaration
public static void UnlockDoor(GameObject triggerObj, DaggerfallAction thisAction)
Parameters
|
Improve this Doc
View Source
Handles the input return event for action type 12
Declaration
public void UserInputHandler(DaggerfallInputMessageBox sender, string userInput)
Parameters
Events
|
Improve this Doc
View Source
OnTeleportAction
Declaration
public static event DaggerfallAction.OnTeleportActionEventHandler OnTeleportAction
Event Type
Extension Methods
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)