Example_Block_Sensor
Server/EncounterManager/Example_Block_Sensor.json, 1.0 KB
Fields
| Field | Type |
|---|---|
Class | string |
Type | string |
Debug | string |
StartState | string |
Instructions | array[1] |
Source
{
"Class": "EncounterManager",
"Type": "Generic",
"Debug": "DisplayState",
"StartState": "Searching",
"Instructions": [
{
"Instructions": [
{
"Sensor": { "Type": "State", "State": "Searching" },
"Instructions": [
{
"Sensor": { "Type": "Block", "Range": 20, "MaxHeight": 8, "Blocks": "Gaia" },
"Actions": [
{ "Type": "Log", "Message": "[Blackboard] Encounter detected a block nearby" },
{ "Type": "SpawnParticles", "Offset": [ 0, 1.5, 0 ], "ParticleSystem": "Alerted" },
{ "Type": "State", "State": "Found" }
]
}
]
},
{
"Sensor": { "Type": "State", "State": "Found" },
"Instructions": [
{
"ActionsBlocking": true,
"Actions": [
{ "Type": "Timeout", "Delay": [ 3, 3 ] },
{ "Type": "State", "State": "Searching" }
]
}
]
}
]
}
]
}