Hello. I’m making custom NPC. And now, I want make preferable materials for him. And I have 1 question - what’s defaulth cost for objects?
Examples:
{Water = 20} - NPC will try avoid water, bc it’s “danger level” is 20, and walk on lava
{Water = 5, Lava = 100} - NPC will try avoid lava, and will swim
{Lava = 0} - what NPC will select?
1 Like
The default pathfinding cost for materials is 1 I believe, if you wanted to make a material not walk-able you could always do this:
Lava = math.huge
This will guarantee that it will never traverse over that material
3 Likes
No, I want make
{Material1 = IDK}
and NPC should be able to walk on Material2, which I don’t writed aswell
I don’t understand what you are trying to accomplish, the original post asked what the default pathfinding cost was. Are you trying to make the NPC only walk on one specific material?
No.
Example:
There’s 2 materials: Lava and Water. I write {Lava = 100}, and humanoid will choose water path.
If I write {Lava = 20, Water = 50} it will choose lava.
I want make it so humanoid will prefer both materials, but only 1 of them will be declared.
if you want the NPC to prefer both then just keep them at default, as far as I’m aware the default pathfinding cost for all materials is the same value, 1.
I found answer. Now I’ll set every material cost to 4.