This script runs Dialogue System actions when the game object receives a "PickUpItem" message. More...
Classes | |
class | SendMessageAction |
Public Member Functions | |
void | Start () |
void | Fire () |
Call this method to manually run the action. More... | |
void | PickUpItem () |
void | Start () |
void | Fire () |
Call this method to manually run the action. More... | |
void | PickUpItem () |
Public Attributes | |
Condition | condition = new Condition() |
The conditions under which the trigger will fire. More... | |
Transform | actor = null |
Use this object as the actor when evaluating the condition. More... | |
bool | once |
If true , destroy this component after firing. More... | |
bool | destroy |
If true , destroy the GameObject after firing. More... | |
string | questName = string.Empty |
The name of the quest to update when the condition is true. More... | |
QuestState | questState |
The new state of the quest. More... | |
string | luaCode = string.Empty |
The lua code to run. More... | |
string | alertMessage = string.Empty |
An optional gameplay alert message. More... | |
LocalizedTextTable | localizedTextTable = null |
An optional localized text table to use for the alert message. More... | |
string | sequence = string.Empty |
The sequence to play. More... | |
SendMessageAction[] | sendMessages = new SendMessageAction[0] |
This script runs Dialogue System actions when the game object receives a "PickUpItem" message.
For example, you can attach it to a weapon pickup. When the player picks up the weapon, this script can run a Lua statement and update a quest.
void PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.Fire | ( | ) |
Call this method to manually run the action.
void PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.Fire | ( | ) |
Call this method to manually run the action.
void PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.PickUpItem | ( | ) |
void PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.PickUpItem | ( | ) |
void PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.Start | ( | ) |
void PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.Start | ( | ) |
Transform PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.actor = null |
Use this object as the actor when evaluating the condition.
string PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.alertMessage = string.Empty |
An optional gameplay alert message.
Leave blank for no message.
Condition PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.condition = new Condition() |
The conditions under which the trigger will fire.
bool PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.destroy |
If true
, destroy the GameObject after firing.
LocalizedTextTable PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.localizedTextTable = null |
An optional localized text table to use for the alert message.
string PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.luaCode = string.Empty |
The lua code to run.
bool PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.once |
If true
, destroy this component after firing.
string PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.questName = string.Empty |
The name of the quest to update when the condition is true.
Blank for none.
QuestState PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.questState |
The new state of the quest.
SendMessageAction [] PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.sendMessages = new SendMessageAction[0] |
string PixelCrushers.DialogueSystem.RealisticFPSPrefab.DialogueSystemOnPickUpItem.sequence = string.Empty |
The sequence to play.