getDammage: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Lou Montana (talk | contribs) m (Text replacement - "<dd class="notedate">Posted on ([^<>]+) " to "<dd class="notedate">Posted on $1</dd> ") |
||
Line 23: | Line 23: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on May 9, 2011 - 13:10 (CEST) | <dd class="notedate">Posted on May 9, 2011 - 13:10 (CEST)</dd> | ||
<dt class="note">[[User:Demonized|Demonized]] | <dt class="note">[[User:Demonized|Demonized]] | ||
<dd class="note"> | <dd class="note"> | ||
[[getDammage]] and [[damage]] work fine when used on damaged vehicles after a repair from a repair truck when used in {{arma2oa}} patch 1.59. | [[getDammage]] and [[damage]] work fine when used on damaged vehicles after a repair from a repair truck when used in {{arma2oa}} patch 1.59. | ||
<dd class="notedate">Posted on January 31, 2007 - 04:25 (CEST) | <dd class="notedate">Posted on January 31, 2007 - 04:25 (CEST)</dd> | ||
<dt class="note">[[User:Ceeeb|Ceeeb]] | <dt class="note">[[User:Ceeeb|Ceeeb]] | ||
<dd class="note"> | <dd class="note"> | ||
In '''{{ofp}} 1.96''', it is possible for a unit to be dead and still return a getDammage value well below 1. Use ![[alive]] to check if a unit is dead. | In '''{{ofp}} 1.96''', it is possible for a unit to be dead and still return a getDammage value well below 1. Use ![[alive]] to check if a unit is dead. | ||
<dd class="notedate">Posted on 13 August 13, 2006 - 12:29 (CEST) | <dd class="notedate">Posted on 13 August 13, 2006 - 12:29 (CEST)</dd> | ||
<dt class="note">[[User:UNN|UNN]] | <dt class="note">[[User:UNN|UNN]] | ||
<dd class="note"> | <dd class="note"> |
Revision as of 00:58, 30 January 2021
Description
- Description:
- Description needed
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- object: Object
- Return Value:
- Return value needed
Examples
- Example 1:
private _damage = getDammage player;
Additional Information
- See also:
- See also needed
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
- Posted on May 9, 2011 - 13:10 (CEST)
- Demonized
- getDammage and damage work fine when used on damaged vehicles after a repair from a repair truck when used in Arma 2: Operation Arrowhead patch 1.59.
- Posted on January 31, 2007 - 04:25 (CEST)
- Ceeeb
- In Operation Flashpoint 1.96, it is possible for a unit to be dead and still return a getDammage value well below 1. Use !alive to check if a unit is dead.
- Posted on 13 August 13, 2006 - 12:29 (CEST)
- UNN
- In Operation Flashpoint vehicles repaired in game with the Repair trucks e.t.c never get completely repaired. After being repaired, rather than returning 0 when the damage command is called. They return a value equal to or less than 0.09. Consequently any vehicle flagged as immobile (as indicated by the canMove command), remains so. At least as far as the AI are concerned. The AI will refuse to board an immobile vehicle or eject straight after boarding. Players remain unaffected and can drive the vehicle as normal. To circumvent this, use setDamage 0 on the vehicle in question, to allow the AI to board.