Jump to content

NPCs not following there set vision cone.

Pending 3.3.3

SpagityCat
SpagityCat

Posted

Hi I'm using Npc Spawn and BetterNpcs and im having trouble getting my Npcs to follow the vision cone setting, no matter what I seem to set them to they will detect players from any angle it seems and I cant figure out how to change it so they only target what's in front of them.

 

 "RoamRange": 10.0,
  "ChaseRange": 40.0,
  "SenseRange": 30.0,
  "ListenRange": 15.0,
  "DamageRange": -1.0,
  "ShortRange": 10.0,
  "AttackLengthMaxShortRangeScale": 2.0,
  "AttackRangeMultiplier": 1.5,
  "CheckVisionCone": true,
  "VisionCone": 115.0,
  "HostileTargetsOnly": false,
  "DisplaySashTargetsOnly": false,
  "IgnoreSafeZonePlayers": true,
  "IgnoreSleepingPlayers": true,
  "IgnoreWoundedPlayers": true,
  "NpcAttackMode": 2,
  "NpcSenseRange": 30.0,
  "NpcDamageScale": 1.0,

example or what I have some settings at, any help would be appreciated.

aimacak

Posted

On 5/11/2026 at 7:11 AM, SpagityCat said:

Hi I'm using Npc Spawn and BetterNpcs and im having trouble getting my Npcs to follow the vision cone setting, no matter what I seem to set them to they will detect players from any angle it seems and I cant figure out how to change it so they only target what's in front of them.

 

 "RoamRange": 10.0,
  "ChaseRange": 40.0,
  "SenseRange": 30.0,
  "ListenRange": 15.0,
  "DamageRange": -1.0,
  "ShortRange": 10.0,
  "AttackLengthMaxShortRangeScale": 2.0,
  "AttackRangeMultiplier": 1.5,
  "CheckVisionCone": true,
  "VisionCone": 115.0,
  "HostileTargetsOnly": false,
  "DisplaySashTargetsOnly": false,
  "IgnoreSafeZonePlayers": true,
  "IgnoreSleepingPlayers": true,
  "IgnoreWoundedPlayers": true,
  "NpcAttackMode": 2,
  "NpcSenseRange": 30.0,
  "NpcDamageScale": 1.0,

example or what I have some settings at, any help would be appreciated.

Hello, try to make Listen Range 15, and if you have the opportunity, you can also send a video so that I better understand exactly what you want to get and what you are getting, and the NpcSpawn preset.

SpagityCat

Posted

13 hours ago, aimacak said:

Hello, try to make Listen Range 15, and if you have the opportunity, you can also send a video so that I better understand exactly what you want to get and what you are getting, and the NpcSpawn preset.

Thank you for responding I eventually with enough trial and error got them to act the way I wanted, thanks for the support 🙂

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.1k
Customers served
Files Sold
159.4k
Total sales
Payments
3.4m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.