setHit: Difference between revisions

From Bohemia Interactive Community
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]] - |= PARAMETER2
|p2= part: [[String]] - Czech name of the part. See [[Translations|translation table]].


|p3= damage: [[Number]] - |= PARAMETER3
|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 ["engine", 1]</pre> |= EXAMPLE1  
|x1= <pre>vehicle player setHit ["motor", 1]</pre> |= EXAMPLE1  
|x2= <pre>vehicle player setHit ["mala vrtule", 0.95]</pre> |= EXAMPLE2


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 11:41, 3 August 2009

Hover & click on the images for description

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

Notes

Bottom Section