Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.3 / NPC / Roles / _Core / Tests / Spawning / Test_Spawn.json

Test_Spawn

Server/NPC/Roles/_Core/Tests/Spawning/Test_Spawn.json, 1.5 KB

Fields

FieldType
Typestring
$Commentstring
Appearancestring
SpawnParticlesstring
SpawnParticlesOffsetarray[3]
MotionControllerListarray[1]
TestTypestring
MaxHealthobject
Parametersobject
Instructionsarray[2]
NameTranslationKeystring

Source

{
  "Type": "Generic",
  "$Comment": "DoubleTestCheck",
  "Appearance": "Sheep",
  "SpawnParticles": "Explosion_Medium",
  "SpawnParticlesOffset": [ 0, 1, 0 ],
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 1,
      "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": [
    {
      "Continue": true,
      "Instructions": [
        {
          "Sensor": {
            "Type": "Any"
          },
          "BodyMotion": {
            "Type": "Wander",
            "RelativeSpeed": 1,
            "MinWalkTime": 0.5
          }
        }
      ]
    },
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "Any"
          },
          "Actions": [
            {
              "Type": "Sequence",
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [ 3, 5 ],
                  "Action": {
                    "Type": "SpawnParticles",
                    "Offset": [ 0, 0.5, 2 ],
                    "ParticleSystem": "Explosion_Medium"
                  }
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Spawn.name"
}