武装突袭 Wiki
Advertisement
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 onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

点击图片可看到更多讯息

开始使用于

游戏:
Operation Flashpoint
版本:
1.5

描述

描述:
Damage / repair object. Damage 0 means fully functional, damage 1 means completely destroyed / dead. This function is identical to setDammage. It was introduced to fix a spelling error in original function name.

基本句法

句法:
object setDamage damage
参数:
object: Object
damage: Number
返回值:
Nothing

范例

范例1:
_soldier1 setDamage 1;

额外资讯

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

注意事项

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

Notes

Ceeeb
In OFP, setting a unit's damage to a negative value will set it's health to full, but impair their aim.

Bottom Section

Posted on May 29, 2015 - 11:23 (UTC)
KamikazeXeX
Using this possible overrides individual hit damages such as setHitPointDamage ["HitHead", _value]; if you're having issues try setting hitdamage after setdamage
Advertisement