Hytale Asset ReferenceUnofficial
Versions / 0.5.3 / NPC / Roles / _Core / Tests / Test_Species_Attitude.json

Test_Species_Attitude

Server/NPC/Roles/_Core/Tests/Test_Species_Attitude.json, 2.3 KB

Fields

FieldType
DefaultSubStatestring
Typestring
Appearancestring
DefaultPlayerAttitudestring
AttitudeGroupstring
MotionControllerListarray[1]
TestTypestring
MaxHealthobject
Parametersobject
Instructionsarray[1]
NameTranslationKeystring

Source

{
  "DefaultSubState": "Start",
  "Type": "Generic",
  "Appearance": "Kweebec_Sapling_Orange",
  "DefaultPlayerAttitude": "Neutral",
  "AttitudeGroup": "Trork",
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 3,
      "RunThreshold": 0.7,
      "RunThresholdRange": 0.1,
      "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": "Mob",
            "GetNPCs": true,
            "LockOnTarget": true,
            "Range": 10,
            "Prioritiser": {
              "Type": "Attitude",
              "AttitudesByPriority": [ "Hostile", "Friendly" ]
            },
            "GetPlayers": true
          },
          "Instructions": [
            {
              "Sensor": {
                "Type": "Target",
                "Filters": [
                  {
                    "Type": "Attitude",
                    "Attitudes": [ "Hostile" ]
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "PlayAnimation",
                  "Slot": "Status"
                }
              ],
              "BodyMotion": {
                "Type": "Flee"
              }
            },
            {
              "Sensor": {
                "Type": "Target",
                "Filters": [
                  {
                    "Type": "Attitude",
                    "Attitudes": [ "Friendly" ]
                  }
                ]
              },
              "Actions": [
                {
                  "Type": "PlayAnimation",
                  "Slot": "Status",
                  "Animation": "Wave"
                }
              ],
              "HeadMotion": {
                "Type": "Watch"
              }
            }
          ]
        },
        {
          "Sensor": {
            "Type": "Any"
          },
          "Actions": [
            {
              "Type": "PlayAnimation",
              "Slot": "Status"
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Species_Attitude.name"
}