menu_bookDocumentation

Mapping in s&box

calendar_today May 3, 2026 schedule ~1 min read person PatrickJr verified 50

Mapping in s&box

s&box includes Hammer, the Source 2 level editor, for creating maps.

Opening Hammer

  • Main MenuToolsHammer
  • Or click Hammer icon in toolbar

Hammer Features

  • Block-based geometry — Build with brushes
  • Mesh editing — Detailed static meshes
  • Entities — Place gameplay objects
  • Materials — Apply textures with drag-drop
  • Lighting — Real-time and baked lighting
  • Visibility (VIS) — Optimization with PVS

Map Workflow

  1. Build geometry — Brushes and meshes
  2. Apply materials — Textures and surfaces
  3. Place entities — Spawns, triggers, logic
  4. Add lighting — Environment and direct lights
  5. Compile — Generate navmesh, lighting, VIS
  6. Test in game — Play directly from Hammer

Map Entities

Common entity types:

EntityPurpose
infoplayerstartPlayer spawn point
trigger_multipleTrigger volume
prop_staticStatic prop
light_environmentSun/ambient light
point_lightLocal light source

Using Maps in Code

CSHARP
// Load a map
Scene.LoadFromFile("maps/my_map.vmap");

// Find map entities
var spawnPoints = Scene.GetAll<SpawnPoint>();

Shortcuts

See Mapping Shortcutsopen_in_new for full list.

Was this helpful?