Encounter_Macro_Example_Forwardable
Server/EncounterManager/Examples/Encounter_Macro_Example_Forwardable.json, 1.8 KB
Fields
| Field | Type |
|---|---|
Class | string |
Type | string |
Interface | string |
Parameters | object |
Content | object |
Source
{
"Class": "Instruction",
"Type": "Component",
"Interface": "Hytale.Instruction.Encounter.Phase.Logic",
"Parameters": {
"Label": {
"Value": "macro default label",
"Description": "Message logged while a player is near. Override it via a forwarded modifier from a variant."
},
"Sound": {
"Value": "SFX_Trork_Alerted",
"Description": "Non-looping sound event played every 3 seconds so QA can hear which variant is active. Override it via a forwarded modifier from a variant, the same way as Label."
}
},
"Content": {
"Instructions": [
{
"Continue": true,
"Sensor": {
"Type": "Timer",
"Name": "QASoundTimer",
"State": "Stopped"
},
"Actions": [
{
"Type": "PlaySound",
"SoundEventId": { "Compute": "Sound" }
},
{
"Type":"TimerRestart",
"Name":"QASoundTimer"
}
]
},
{
"Continue": true,
"Sensor": {
"Type": "Timer",
"Name": "QASoundTimer",
"State": "Stopped",
"Once": true
},
"Actions": [
{
"Type": "TimerStart",
"Name": "QASoundTimer",
"StartValueRange": [ 3, 3 ],
"RestartValueRange": [ 3, 3 ]
}
]
},
{
"Sensor": {
"Type": "Player",
"Range": 16
},
"Actions": [
{
"Type": "Log",
"Message": {
"Compute": "Label"
}
}
]
},
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "Nothing"
}
]
}
]
}
}