Half-Life: Alyx Workshop Tools/Level Design/Navigation Mesh

From Valve Developer Community
< Half-Life: Alyx Workshop Tools‎ | Level Design
Revision as of 10:05, 18 April 2020 by XBLAH (talk | contribs) (Created page with "== Introduction == This tutorial will teach you how to create a Navigation Mesh so NPCs can walk around by their own. == Setup == Create a test room with a couple walking N...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

This tutorial will teach you how to create a Navigation Mesh so NPCs can walk around by their own.

Setup

Create a test room with a couple walking NPCs of your choice. For this tutorial, I've added two npc_combine_s.

HLA SDK Navigation Mesh Img1.png

Click on the Navigation button A. The Nav Mesh Editing panel should appear on the left side of the screen. Click Create Walkable Seed and drag a block into the first walking area you want to create. It should create a func_nav_markup mesh entity.

HLA SDK Navigation Mesh Img2.png

Copy and scale the block around, or keep creating new Walkable Seeds until all the NPC walkable area is filled.

HLA SDK Navigation Mesh Img3.png

Finishing up

Compile your map. Click the Navigation Button again, and now click Load Nav From VPK. It should now show in the editor the compiled Navigation Mesh. You can hide the func_nav_markup mesh entities to preview it better.

You can download the example map here [[1]].

HLA SDK Navigation Mesh Img4.png