NPCs not hostile when hostile set to true
Hey everyone!

I recently started playing around with Oxide and I've been reading as much documentation as I can and looking at different plugins.
I have a dedicated server set up running Oxide and some plugins but I've been unable to spawn hostile npcs with Human NPC.
Hope anyone here can help me out.

Problem description

Whenever I spawn an NPC and set it to hostile, it doesn't actually turn hostile.


Commands I ran:

  1. /npc_add - Spawns new NPC called "NPC"
  2. /npc name "Alan" - Works fine.
  3. /npc hostile true - Prints: "NPC Editor: Set Hostile to True"
  4. /npc_end - NPC still not hostile, even when provoked.


Plugins installed:

Kits.cs
Pathfinding.cs
Waypoints.cs
HumanNPC.cs
BetterChat.cs
InfoPanel.cs
TcMapMarkers.cs

I've tried

  • Checking for errors in the serverlogs and oxide logs. ( None )
  • Giving the NPC different types of eqipment and weapons.
  • Killing the NPC to force it to respawn.
This is the NPC's entry in NpcData.json:
{
      "userid": 8024761344,
      "displayName": "Alan",
      "invulnerability": false,
      "health": 50.0,
      "respawn": true,
      "respawnSeconds": 60.0,
      "spawnInfo": {
        "position": "-766.0956 54.65423 1175.163",
        "rotation": "-0.2010196 0.004210372 -0.0008640122 -0.9795778"
      },
      "waypoint": null,
      "collisionRadius": 10.0,
      "spawnkit": "heavy",
      "damageAmount": 10.0,
      "damageDistance": 3.0,
      "damageInterval": 2.0,
      "attackDistance": 100.0,
      "maxDistance": 200.0,
      "hostile": true,
      "speed": 3.0,
      "stopandtalk": true,
      "stopandtalkSeconds": 3.0,
      "enable": true,
      "lootable": true,
      "hitchance": 0.75,
      "reloadDuration": 0.0,
      "needsAmmo": true,
      "defend": true,
      "evade": false,
      "follow": true,
      "evdist": 0.0,
      "allowsit": false,
      "musician": null,
      "playTune": false,
      "SoundOnEnter": false,
      "SoundOnUse": false,
      "band": 0.0,
      "permission": "",
      "Sound": "",
      "message_hello": null,
      "message_bye": null,
      "message_use": null,
      "message_hurt": null,
      "message_kill": null,
      "protections": {
        "Generic": 0.0,
        "Hunger": 0.0,
        "Thirst": 0.0,
        "Cold": 0.0,
        "Drowned": 0.0,
        "Heat": 0.0,
        "Bleeding": 0.0,
        "Poison": 0.0,
        "Suicide": 0.0,
        "Bullet": 0.0,
        "Slash": 0.0,
        "Blunt": 0.0,
        "Fall": 0.0,
        "Radiation": 0.0,
        "Bite": 0.0,
        "Stab": 0.0,
        "Explosion": 0.0,
        "RadiationExposure": 0.0,
        "ColdExposure": 0.0,
        "Decay": 0.0,
        "ElectricShock": 0.0,
        "Arrow": 0.0,
        "AntiVehicle": 0.0,
        "Collision": 0.0,
        "Fun_Water": 0.0
      }
    },​
Try seting defend to false..
Ts3hosting
Try seting defend to false..

I tried that. It does however start attacking if I have defend on and attack it first.