setHit: Difference between revisions
Jump to navigation
Jump to search
(add. classification) |
No edit summary |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Damage / repair part of object. Damage 0 means fully functional, damage 1 means completely destroyed / dead. |= Description | | Damage / repair part of object. Damage 0 means fully functional, damage 1 means completely destroyed / dead. '''Note:''' part names are in Czech; see below. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 14: | Line 14: | ||
|p1= object: [[Object]] - |= PARAMETER1 | |p1= object: [[Object]] - |= PARAMETER1 | ||
|p2= part: [[String]] - | | |p2= part: [[String]] - Czech name of the part. See [[Translations|translation table]]. | ||
|p3= damage: [[Number]] - |= | |p3= damage: [[Number]] - |= Damage value ranging from 0 to 1, 1 being destroyed. Non-integer values work fine. | ||
| [[Nothing]] |= RETURNVALUE | | [[Nothing]] |= RETURNVALUE | ||
|x1= <pre>vehicle player setHit [" | |x1= <pre>vehicle player setHit ["motor", 1]</pre> |= EXAMPLE1 | ||
|x2= <pre>vehicle player setHit ["mala vrtule", 0.95]</pre> |= EXAMPLE2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 10:41, 3 August 2009
Description
- Description:
- Damage / repair part of object. Damage 0 means fully functional, damage 1 means completely destroyed / dead. Note: part names are in Czech; see below.
- Groups:
- Uncategorised
Syntax
- Syntax:
- object setHit [part, damage]
- Parameters:
- object: Object -
- part: String - Czech name of the part. See translation table.
- damage: Number -
- Return Value:
- Nothing
Examples
- Example 1:
vehicle player setHit ["motor", 1]
- Example 2:
vehicle player setHit ["mala vrtule", 0.95]
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