{
  "type": "RescueTruck",
  
  "properties":
  {
    "drawOnce": true,
    "amountLimit": 3,
    "spawnRate": 1,
    "z": 790,
    "categories": ["OBJECT"]
  },
  
  "sfx":
  {
    "on_arrive": ["GameResources/SFX/Entities/s_zom_rescue.ogg"],
    "on_create": ["GameResources/SFX/Entities/car_spawn.ogg"]
  },

  "components": [
    {
      "type": "Render",
      "pfg": "GameResources/Graphics/Entities/RescueTruck.pfg",
      "_frame": "Idle0",
      "flipX": false,
      "scale": 0.25,
      "bottomOverlap": 0
    },
    {
      "type": "Animation",
      "_animID": "Idle",
      "frameRate": 0.1,
      "looping": false,
      "_playing": false
    },
    { "type": "HitBox", "rect": [ 0.0, 0.25, 17.5, 9 ] },
    {
      "type": "Physics",
      "gravity": -0.15
    },
    { "type": "CollisionResponse" },
    {
      "type": "Sensor",
      "id": "targetDetectArea",
      "rectShaped": false,
      "offsetX": 0.27,
      "offsetY": 0.5,
      "delay": 0.1,
      "sensePred": { "type": "HasAnyType", "types": ["SurvivorGuy", "SurvivorWoman", "SurvivorMotorcycle", "SurvivorSinger"] }
    },
    { "type": "RescueTruck" },
    { "type": "Erase" }
  ]
}
