Bug You can interact with the npc from several meters

You can interact with the npc from several meters, even with the npc closed in a house from outside the house you still interact with it without any problem. Is it possible to add an option of meters? or directly set the limit of a foundation?

that would be a setting in humanNPC

what configuration? I have changed some configuration of HumanNPC and it remains the same, the changes do not affect. Thanks, can you help me

Merged post

fixed, changing line in HumanNpc.cs

var hitpoints = Physics.RaycastAll(new Ray(player.transform.position + eyesPosition, currentRot * Vector3.forward), 0.6f, playerLayer);

nPVgZXkSASOv0Yy.png atope

what configuration? I have changed some configuration of HumanNPC and it remains the same, the changes do not affect. Thanks, can you help me

Merged post

fixed, changing line in HumanNpc.cs

var hitpoints = Physics.RaycastAll(new Ray(player.transform.position + eyesPosition, currentRot * Vector3.forward), 0.6f, playerLayer);

no that will screw up every NPC radius.

 

when you're editing an NPC in game:

/npc radius X

X being a number in metres. 2-3 works best for "use" interaction

 

when editing HumanNPC.json:

in your desired NPC's definitions look for "collisionRadius" and change the number, again, in metres