Fandom

武装突袭 Wiki

Damage

简体 | 繁體

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

您使用了广告屏蔽软件!


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

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

Introduced with Operation Flashpoint version 1.5
  Arguments of this scripting command don't have to be local to the client the command is executed on

点击图片可看到更多讯息

开始使用于

游戏:
Operation Flashpoint
版本:
1.5

描述

描述:
Return the damage value of an object.

基本句法

句法:
Number = damage object
参数:
object: Object
返回值:
Number - The returned number is in range 0 (healthy) to 1 (dead).

范例

范例1:
? ((damage player)>0.1) : player groupChat "I'm hurt! Medic!"

范例2:
if ((damage player) > 0.1) then {

   player groupChat "I'm hurt! Medic!"; 

};

额外资讯

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

setDamagesetDammagegetDammagesetHitgetHitgetHitIndexsetHitIndexgetHitPointDamagesetHitPointDamage

注意事项

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

Notes

Bottom Section

Posted on February 13, 2015 - 20:20 (UTC)
Pierre MGI
The returned value depends on the couple target/ammo fired. This value has no correlation with the sum of all hitpoints damage status and the effective status of the object. Firing bullets on cars often lead to weird results. For example: damage returns zero while a Hunter is fired at will with an .50 HMG! Hunter can be almost destroyed with zero damage for this function. If you script, use instead the getHitPointDamage function.

更多维基

随机维基