Half-Life: Alyx Workshop Tools/Level Design/Energy Gun

From Valve Developer Community
< Half-Life: Alyx Workshop Tools‎ | Level Design
Revision as of 19:16, 21 April 2020 by XBLAH (talk | contribs) (Created page with "== Introduction == This tutorial will teach you how give the player the Pistol, or Energy Gun. == Making it pickable == Create a test room. Insert a '''weapon_energygun'''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

This tutorial will teach you how give the player the Pistol, or Energy Gun.

Making it pickable

Create a test room. Insert a weapon_energygun entity. You can set the initial ammo via the property Spawn Ammo.

HLA SDK Energy Gun Img1.png

Giving it on spawn

Insert an info_hlvr_equip_player entity. Set the following properties:

Key Value
Equip on Map Start
Pistol

You can set the initial loaded ammo with the following property:

Key Value
Loaded Pistol Ammo 10

You can set the backpack ammo amount with the following property:

Key Value
Pistol Ammo 10