setViewDistance

Sets the view distance, meaning how far the player can see NPCs.

Parameters

num

the distance from which NPCs become visible