setHidden

fun setHidden(hidden: Boolean)

Sets the avatar as hidden (or unhidden, depending on hidden). When hidden via this function, no information is transmitted to the clients about this avatar. It is a hard-hiding function, unlike the one via appearance extended info, which strictly only hides client-side, but all clients still receive information about the client existing. The benefit to this function is that no plugins or RuneLite implementations can snoop on other players that are meant to be hidden. The downside, however, is that because the client has no knowledge of that specific avatar whatsoever, un-hiding while the player is moving is not as smooth as with the appearance variant, since it first appears as if the player teleported in.