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.
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:
- /npc_add - Spawns new NPC called "NPC"
- /npc name "Alan" - Works fine.
- /npc hostile true - Prints: "NPC Editor: Set Hostile to True"
- /npc_end - NPC still not hostile, even when provoked.
Plugins installed:
Kits.csPathfinding.csWaypoints.csHumanNPC.csBetterChat.csInfoPanel.csTcMapMarkers.csI'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.
{
"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
}
},