setInaccessible

fun setInaccessible(inaccessible: Boolean)

Sets this avatar inaccessible, meaning no player can observe this NPC, but they are still in the world. This is how NPCs in the 'dead' state will be handled.

Parameters

inaccessible

whether the npc is inaccessible to all players (not rendered)