手枪(能量枪)

From Valve Developer Community
< Zh‎ | Half-Life: Alyx Workshop Tools‎ | Level Design
Revision as of 06:58, 11 July 2024 by Nesciuse (talk | contribs) (Using L template for links)
Jump to navigation Jump to search
English (en)Русский (ru)中文 (zh)Translate (Translate)

{{HLATools topicons}} is deprecated. This wiki no longer uses any top icons due to their inconsistent coverage and visual clutter. Do not use these templates.

介绍

本篇教程将教您如何给玩家手枪或能量枪

过程

创建一个测试用房间。放入实体 item_hlvr_weapon_energygun(en)。 你可以通过“Spawn ammo”来设置初始弹药。

HLA SDK Energy Gun Img1.png

你可以放入一个 item_hlvr_clip_energygun(en)或 item_hlvr_clip_energygun(en) 点实体来生成弹药。

让它生成

插入一个 info_hlvr_equip_player(en) 实体。 并设置以下属性:

Key Value
Equip on Map Start ✓
Pistol ✓

你可以用以下属性设置初始弹药:

Key Value
Loaded Pistol Ammo 10

你可以用以下属性设置背包的弹药量:

Key Value
Pistol Ammo 10