Here's a sample implementation in C#:
Happy surviving.
: You can disable the AI Hunter faction entirely in the game settings before starting a world. Console Commands Subsistence