Skip to content

Implementation

Timm Luyten edited this page Mar 30, 2023 · 16 revisions

Installing WIP

Using the base into your own gamemode can be done by:

  1. Implementing the PlayerBase Interface into your player class partial class MyPlayer : ISWBPlayer
  2. If you want the demo HUD (scoreboard, inventory, killfeed) you'll need to initialize it in your game constructor
using SWB_HUD;

public partial class ExampleGame : Sandbox.Game
{
    public HUD UI;

    public ExampleGame()
    {
        if (IsServer)
        {
            UI = new HUD();
        }
    }
}
Clone this wiki locally