SelectionLayer record
public sealed record SelectionLayer An override a gamemode, a weapon or any Plugin lays over a player’s weapon selection with ISelection.Set. Every key left as it starts leaves selection as it was.
Layers stack lowest priority first, ties in the order they were set. Any layer that hides or locks selection does so whatever the others say, and for Scroll, Selector and Slots the topmost layer naming one wins. The server holds the stack, so a pick a locked or hidden player sends never switches their weapon.
new SelectionLayer("physgun")
{
Priority = SelectionLayer.Weapon,
Scroll = false
};
- Assembly
- EvilEngine.Api
- Commit
- 4ff877b1