getAllHitPointsDamage: Difference between revisions
Jump to navigation
Jump to search
m (hitpoints return structure update.) |
m (template:command argument fix) |
||
Line 11: | Line 11: | ||
| Returns 3 arrays for easy cross reference: 1st - array of hit point names, 2nd - array of hit selection names, 3rd - array of damage values. All values in all arrays are ordered accordingly to hit part index for convenience and for use in [[setHitIndex]] and [[getHitIndex]]. Levels of damage are: | | Returns 3 arrays for easy cross reference: 1st - array of hit point names, 2nd - array of hit selection names, 3rd - array of damage values. All values in all arrays are ordered accordingly to hit part index for convenience and for use in [[setHitIndex]] and [[getHitIndex]]. Levels of damage are: | ||
* 0: no damage | * 0: no damage | ||
* 1: full damage |= | * 1: full damage |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''getAllHitPointsDamage''' entity|= | | '''getAllHitPointsDamage''' entity|SYNTAX= | ||
|p1= entity: [[Object]] - object to be queried |= | |p1= entity: [[Object]] - object to be queried |PARAMETER1= | ||
| [[Array]] - [] if entity is null or has no shape, otherwise [hitpointsNamesArray, selectionsNamesArray, damageValuesArray]|= | | [[Array]] - [] if entity is null or has no shape, otherwise [hitpointsNamesArray, selectionsNamesArray, damageValuesArray]|RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 29: | Line 29: | ||
</code> |= | </code> |= | ||
| [[setHitPointDamage]], [[getHitPointDamage]], [[setHitIndex]], [[getHitIndex]], [[setHit]], [[getHit]], [[setDamage]], [[damage]] |= | | [[setHitPointDamage]], [[getHitPointDamage]], [[setHitIndex]], [[getHitIndex]], [[setHit]], [[getHit]], [[setDamage]], [[damage]] |SEEALSO= | ||
}} | }} |
Revision as of 14:39, 7 April 2019
Description
- Description:
- Returns 3 arrays for easy cross reference: 1st - array of hit point names, 2nd - array of hit selection names, 3rd - array of damage values. All values in all arrays are ordered accordingly to hit part index for convenience and for use in setHitIndex and getHitIndex. Levels of damage are:
- 0: no damage
- 1: full damage
- Groups:
- Uncategorised
Syntax
- Syntax:
- getAllHitPointsDamage entity
- Parameters:
- entity: Object - object to be queried
- Return Value:
- Array - [] if entity is null or has no shape, otherwise [hitpointsNamesArray, selectionsNamesArray, damageValuesArray]
Examples
- Example 1:
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] //]
Additional Information
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