Versions / 0.6.0-pre.7 / NPC / Roles / _Core / Tests / Interaction / Test_Interaction_Component.json
Test_Interaction_Component
Server/NPC/Roles/_Core/Tests/Interaction/Test_Interaction_Component.json, 2.6 KB
Fields
| Field | Type |
|---|---|
StartState | string |
Debug | string |
Type | string |
Appearance | string |
BusyStates | array[1] |
DefaultPlayerAttitude | string |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
InteractionInstruction | object |
NameTranslationKey | string |
Source
{
"StartState": "Idle",
"Debug": "DisplayState",
"Type": "Generic",
"Appearance": "Kweebec_Sapling_Orange",
"BusyStates": [ "$Interaction" ],
"DefaultPlayerAttitude": "Neutral",
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 3,
"Gravity": 10,
"MaxFallSpeed": 20,
"Acceleration": 10
}
],
"TestType": "Normal",
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Instructions": [
{
"Sensor": {
"Type": "State",
"State": "Idle"
},
"Instructions": [
{
"Reference": "Component_Instruction_Clear_Status_Animation",
"Modify": { }
},
{
"Sensor": {
"Type": "Any"
},
"BodyMotion": {
"Type": "Nothing"
}
}
]
},
{
"Sensor": {
"Type": "State",
"State": "$Interaction"
},
"Instructions": [
{
"Sensor": {
"Once": true,
"Type": "Target",
"Range": 10
},
"Actions": [
{
"Type": "PlayAnimation",
"Slot": "Status",
"Animation": "Wave"
}
]
},
{
"Continue": true,
"Sensor": {
"Type": "Target",
"Range": 10
},
"HeadMotion": {
"Type": "Watch"
}
},
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "Timeout",
"Delay": [ 2, 2 ],
"Action": {
"Type": "Sequence",
"Actions": [
{
"Type": "ReleaseTarget"
},
{
"Type": "State",
"State": "Idle"
}
]
}
}
]
}
]
}
]
}
],
"InteractionInstruction": {
"Reference": "Component_Instruction_Interaction_Simple",
"Modify": {
"_ExportStates": [ "$Interaction" ]
}
},
"NameTranslationKey": "server.npcRoles.Test_Interaction_Component.name"
}