Getting the portalgun at the start of map correctly/zh
语言子页面
该子页面用于在 Getting the portalgun at the start of map correctly 页面上以 中文 (Chinese) 显示内容。
如果你已编辑本语言子页面,不要忘记通过点击右边的按钮刷新根页面。否则,内容不会更新。
介绍
在关卡过渡时,你不希望玩家听到传送门枪升级的声音,也不希望玩家在从关卡过渡中加载新地图时看到不知从哪里冒出来的传送门枪。本指南将向您展示如何解决此问题。
注意:如果你的地图没有任何关卡过渡,或者它是地图合集中的第一张/唯一一张地图,你所要做的就是把它放在玩家的生成点上,你不需要遵循本指南。
建造
1. 创建一个weapon_portalgun
实体并将其放在info_player_start
或玩家出生地,然后将它命名为portalgun
.
2. 创建一个point_template
然后将它起名为portalgun_template
。然后把设置template 1
到portalgun
.
3. 创建一个logic_auto
实体并输入以下属性:
My Output > Target Entity Target Input Parameter Delay Only Once OnNewGame portalgun_template ForceSpawn <none> 0.00 No
传送门枪现在应该只在你直接加载到地图中时生成,在关卡转换生效时不会生成。