getAllHitPointsDamage: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "↵↵</sqf>" to " </sqf>") |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 16: | Line 16: | ||
* hitpointNames: [[Array]] of [[String]]s | * hitpointNames: [[Array]] of [[String]]s | ||
* selectionNames: [[Array]] of [[String]]s | * selectionNames: [[Array]] of [[String]]s | ||
* damageValues: [[Array]] of [[Number]]s | * damageValues: [[Array]] of [[Number]]s in range 0..1 - where 0 = no damage, 1 = full damage | ||
All values in all arrays are ordered accordingly to hit part index for convenience and for use in [[setHitIndex]] and [[getHitIndex]]. | All values in all arrays are ordered accordingly to hit part index for convenience and for use in [[setHitIndex]] and [[getHitIndex]]. | ||
Latest revision as of 06:46, 1 January 2026
Description
- Description:
- Get provided object's hit points damage.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- getAllHitPointsDamage entity
- Parameters:
- entity: Object - object to be queried
- Return Value:
- Array - [] if entity is null or has no shape, otherwise [hitpointNames, selectionNames, damageValues]:
- hitpointNames: Array of Strings
- selectionNames: Array of Strings
- damageValues: Array of Numbers in range 0..1 - where 0 = no damage, 1 = full damage
Examples
- Example 1:
- hint str getAllHitPointsDamage player; /* [ ["hitface","hitneck","hithead","hitpelvis","hitabdomen","hitdiaphragm","hitchest","hitbody","hitarms","hithands","hitlegs","incapacitated"], ["face_hub","neck","head","pelvis","spine1","spine2","spine3","body","arms","hands","legs","body"], [0,0,0,0,0,0,0,0,0,0,0,0] ] */
- Example 2:
- hint str getAllHitPointsDamage vehicle player; /* [ ["hithull","hitengine","hitengine2","hitavionics","hitfuel","hitfuel2","hitglass1","hitlaileron","hitraileron","hitlcrudder","hitrrudder","hitlcelevator","hitrelevator","#gear_f_lights"], ["hithull","hitengine","hitengine2","hitavionics","hitfuel","hitfuel2","hitglass1","hitlaileron","hitraileron","hitlcrudder","hitrrudder","hitlcelevator","hitrelevator"," "], [0,0,0,0,0,0,0,0,0,0,0,0,0,0] ] */
Additional Information
- See also:
- setHitPointDamage getHitPointDamage setHitIndex getHitIndex setHit getHit setDamage damage
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note