Set hostile to true but none of my NPC's will attack radius and damagedistance are set but nothing. they defend fine
NPCs are not hostile at all
ya i cant get that working eathor
Same issue. All attack, sight, and damage parameters set. They attack properly when defend is true, but just stand there when hostile is true. I've tried with defend turned on or off.
The hostile setting does seem to work now. I'm not sure what triggers it, but after setting an NPC to hostile they won't attack me unless provoked. However, I noticed that after a day or so passed they will attack. I do use vanish (yes it's turned off when testing them) so maybe this is causing issues?
can you post your npc's data config .
Here's the code for a scientist guard. I haven't tested him in the past day or so, but after I placed him he would only attack if I shot him.
{
"userid": 1618825111,
"displayName": "Scientist02",
"invulnerability": false,
"health": 100.0,
"respawn": true,
"respawnSeconds": 3600.0,
"spawnInfo": {
"position": "289.6445 0.5168316 1291.575",
"rotation": "-0.120928 0.007187245 -0.0008755882 -0.9926348"
},
"waypoint": "guard2",
"collisionRadius": 50.0,
"spawnkit": "scientist2",
"damageAmount": 10.0,
"damageDistance": 60.0,
"damageInterval": 0.5,
"attackDistance": 50.0,
"maxDistance": 200.0,
"hostile": true,
"speed": 8.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,
"band": 0.0,
"message_hello": [
"Stay away from here."
],
"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
} try and turn defend to false because if hostile he will attack if shot also i beleve. i have just taken over this plugin so bare with me as i learn the code.
Thanks Ts3! And thanks for taking over. I'm finding this to be my favorite plugin so far.
There are still issues with this. I've tested quite a few NPCs over the past few weeks. They barely attack at all. I have a sniper on a roof that doesn't shoot, and I've put NPCs in bases that just stand there and get killed. All have similar settings as above, and turning defend off just makes them stand there and do nothing when they get shot.