allowDammage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Provided correct description and example of use)
No edit summary
Line 11: Line 11:
| Makes the selected unit unable to take damage.  The unit remains able to be shot at but will not take damage.|= Description
| Makes the selected unit unable to take damage.  The unit remains able to be shot at but will not take damage.|= Description


| [[Object|Units]] allowDammage [[boolean]] | = Syntax
| [[Object|Unit]] allowDammage [[boolean]] | = Syntax
| p1= [[Object|Units]]: [[Array]] of [[Object|Person]]s |= Parameter 1
| p1= [[Object|Unit]]: [[Object|Person]] |= Parameter 1
| p2= [[Boolean]] - true allows unit(s) to take damage, false denies the ability to take damage |= Parameter 2
| p2= [[Boolean]] - true allows unit(s) to take damage, false denies the ability to take damage |= Parameter 2
| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>[_soldier1, _soldier2] allowDammage false</pre> |= Example 1
|x1= <pre>player allowDammage false</pre> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 19:33, 4 September 2008


Hover & click on the images for description

Description

Description:
Makes the selected unit unable to take damage. The unit remains able to be shot at but will not take damage.
Groups:
Uncategorised

Syntax

Syntax:
Unit allowDammage boolean
Parameters:
Unit: Person
Boolean - true allows unit(s) to take damage, false denies the ability to take damage
Return Value:
Nothing

Examples

Example 1:
player allowDammage false

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

Notes

Bottom Section