getHit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {{uc:{{PAGENAME}}}}" to "")
m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=")
Line 21: Line 21:
|p2= selection: [[String]] - selection part name
|p2= selection: [[String]] - selection part name


| [[Number]] (prior to Arma 3 v1.94, [[Nothing]] was return when invalid ''selection'' was given)
|r1=[[Number]] (prior to Arma 3 v1.94, [[Nothing]] was return when invalid ''selection'' was given)


|x1= <code>[[player]] [[getHit]] "head";</code>
|x1= <code>[[player]] [[getHit]] "head";</code>

Revision as of 21:44, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
vehicle : Object - vehicle to be queried
selection: String - selection part name
Return Value:
Number (prior to Arma 3 v1.94, Nothing was return when invalid selection was given)

Examples

Example 1:
player getHit "head";
Example 2:
_car getHit "motor";

Additional Information

See also:
setHitgetHitPointDamagesetHitPointDamagesetDamagedamagegetHitIndexsetHitIndex

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