Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
This article relates to the game "半衰期:爱莉克斯". Click here for more information.
这篇条目有关 Half-Life: Alyx 创意工坊工具集。如需详情,点击这里。
这篇条目有关 Source 2引擎。如需详情,点击这里。

手枪(能量枪)

来自Valve Developer Community
跳转至: 导航搜索


English (en)Русский (ru)中文 (zh)
... Icon-Important.png

介绍

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

过程

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

HLA SDK Energy Gun Img1.png

你可以放入一个 item_hlvr_clip_energygunitem_hlvr_clip_energygun 点实体来生成弹药。

让它生成

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

Key Value
Equip on Map Start
Pistol

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

Key Value
Loaded Pistol Ammo 10

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

Key Value
Pistol Ammo 10