LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[IDEA] Add invisible for custom roles

Open risottoman opened this issue 1 year ago • 0 comments

Goal Description

Invisibility for the player, so that his instance exists for all clients, the game model becomes invisible and player can talk.

Why is it necessary to implement this?

There are many custom roles in which the player has a custom model of primitives. When trying to attach a model to a player with an invisibile effect or IsInvisibleFor method (Exiled), the model primitives disappear for clients. Of course, you can create a MonoBehaviour script and update the position of the primitives each time, but then the primitives move with a visible delay. In this case, the server has to send fake data to the client, for example, about the size of the player (0f, 1f, 0f), so that the player disappears from the clients. It seems to me that this is impractical.

There is no other way to make a player invisible with the ability to talk and smooth movement of primitives.

What do you suggest?

I suggest, for example, adding the property Player::Invisible = true or Player::Role = RoleTypeId.CustomRole, which will make the player invisible. This is just an example. In this case, the player instance will exist for all clients and the attached objects will not disappear.

What are the advantages of this idea?

  • Increasing community engagement in game modding.

risottoman avatar Jun 28 '25 15:06 risottoman