damage: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Reverted edits by Heecf..... (talk) to last revision by Str) |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.5|= Game version | |||
|arg= global |= Arguments in MP | |||
____________________________________________________________________________________________ | |||
| Return the damage value of an object. |= Description | |||
____________________________________________________________________________________________ | |||
| [[Number]] <nowiki>=</nowiki> '''damage''' object |= Syntax | |||
|p1= object: [[Object]] |= Parameter 1 | |||
| [[Number]] - | |||
The returned number is in range 0 (healthy) to 1 (dead). |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>? ((damage player)>0.1) : player groupChat "I'm hurt! Medic!"</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| [[setDamage]], [[setDammage]], [[getDammage]], [[setHit]] |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|DAMAGE]] | |||
[[Category:Scripting Commands OFP 1.96|DAMAGE]] | |||
[[Category:Scripting Commands ArmA|DAMAGE]] | |||
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | |||
Revision as of 00:21, 21 August 2012
Description
- Description:
- Return the damage value of an object.
- Groups:
- Uncategorised
Syntax
- Syntax:
- Number = damage object
- Parameters:
- object: Object
- Return Value:
- Number - The returned number is in range 0 (healthy) to 1 (dead).
Examples
- Example 1:
? ((damage player)>0.1) : player groupChat "I'm hurt! Medic!"
Additional Information
- See also:
- setDamagesetDammagegetDammagesetHit
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.5
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.96
- Scripting Commands ArmA
- Command Group: Object Information
- Scripting Commands ArmA2
- Scripting Commands Take On Helicopters