Trying to put a model on a player (a stealth ghost) where some players should only see the model but still be able to hit and target the player under it, and the player themselves sees their normal body.
Right now setBaseEntityVisible(false) is one setting for everyone except the player. Looking at ModelEngineAPI.shouldShow, it returns HIDE for all other viewers, and INVIS only seems to kick in when the model pivots on the base entity.
What I'm suggesting:
- A per-viewer choice, something like setBaseEntityVisibility(Function<Player, CancelType>), with a way to refresh it so it can flip when someone walks in or out of range.
- INVIS usable directly without needing pivot, so the player stays spawned for that viewer (movement, hitbox, all normal) but they get the invisible flag.
- Empty armor/equipment for that viewer under INVIS, if it doesn't do that already. If possible, equipment hiding as its own toggle, seperate from the invis flag.
- Self stays visible by default.
Also, does HIDE stop the player from being spawned for other viewers entirely? If so, they can't hit or target them, which is the main thing we're trying to avoid. Thanks!