Fandom

武装突袭 Wiki

AddWeapon

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 分享

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

Introduced with Operation Flashpoint version 1.00
  Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

点击图片可看到更多讯息

开始使用于

游戏:
Operation Flashpoint
版本:
1.00

描述

描述:
Add a weapon to a unit. The unit must be local to the computer where command is executed. For a global version of this command see addWeaponGlobal.

Infantry units can only carry a specific number of weapons, once the weapon slots are filled, any further addWeapon commands are ignored.

基本句法

句法:
unit addWeapon weapon
参数:
unit: Object - unit or vehicle to add the weapon to

weapon: String - weapon class name. See the topic Category:Weapons for reference about possible values.
返回值:
Nothing

范例

范例1:
player addMagazine "30Rnd_556x45_Stanag"; player addWeapon "BAF_L85A2_RIS_SUSAT";

范例2:
An_2 addMagazine "100Rnd_762x51_M240"; An_2 addWeapon "M240_veh";

额外资讯

多人游戏:
-
也可以看看:

addWeaponGlobalremoveWeaponremoveAllWeaponsaddMagazine

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Posted on August 2, 2006 - 10:19
hardrock
Notes from before the conversion:

To ensure that the weapon is loaded at the start of the mission, add at least one magazine (addMagazine) before adding the weapon. To remove weapons use the removeAllWeapons or the removeWeapon commands.


talkingtoaj

When adding a weapon in-game, a bug means that sometimes the weapon can't be fired. Swap to a different weapon and swap back again to enable the newly added weapon to fire; or drop and pick up the weapon again.



Bottom Section

更多维基

随机维基