This article relates to the game "Half-Life: Alyx". Click here for more information.
This article relates to the workshop tools for "Half-Life: Alyx". Click here for more information.
This article's documentation is for Source 2. Click here for more information.

Difference between revisions of "Half-Life: Alyx Workshop Tools/Level Design/Energy Gun"

From Valve Developer Community
Jump to: navigation, search
m
(Added HLATools page template)
Line 2: Line 2:
 
|ru=Инструменты_мастерской_Half-Life:_Alyx/Дизайн_уровней/Оружие/Energy_Gun:ru
 
|ru=Инструменты_мастерской_Half-Life:_Alyx/Дизайн_уровней/Оружие/Energy_Gun:ru
 
}}
 
}}
 +
{{HLATools page|leveldesign=1}}
 
== Introduction ==
 
== Introduction ==
  
Line 51: Line 52:
 
| 10
 
| 10
 
|}
 
|}
 
[[Category:Half-Life:_Alyx_Workshop_Tools/Level_Design]]
 
[[Category:Half-Life:_Alyx_Workshop_Tools]]
 

Revision as of 20:41, 27 May 2020

Русский

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

You can spawn ammo by inserting an item_hlvr_clip_energygun or item_hlvr_clip_energygun point entity.

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