getAllHitPointsDamage: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "|= |x2=" to "|Example1= |x2=") |
||
(13 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Scripting Commands]] | [[Category:Scripting Commands]] | ||
{{Command|= | {{Command|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma3| | | arma3|Game name= | ||
|1.50| | |1.50|Game version= | ||
|arg= global|= | |arg= global|Multiplayer Arguments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| 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''' | | '''getAllHitPointsDamage''' entity|SYNTAX= | ||
|p1= | |p1= entity: [[Object]] - object to be queried |PARAMETER1= | ||
| [[Array]] |= | | [[Array]] - [] if entity is null or has no shape, otherwise [hitpointsNamesArray, selectionsNamesArray, damageValuesArray]|RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[getAllHitPointsDamage]] [[player]]; | |x1= <code>[[getAllHitPointsDamage]] [[player]]; | ||
//[ | //[ | ||
// [" | //["hitface","hitneck","hithead","hitpelvis","hitabdomen","hitdiaphragm","hitchest","hitbody","hitarms","hithands","hitlegs","incapacitated"], | ||
// ["","neck","head","pelvis","spine1","spine2","spine3","body","","hands","legs"], | //["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,0,0] | ||
//]</code> |= | //] | ||
</code> |Example1= | |||
| [[setHitPointDamage]], [[getHitPointDamage]], [[setHitIndex]], [[getHitIndex]], [[setHit]], [[getHit]], [[setDamage]], [[damage]] |= | |x2= <code>[[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] | |||
//] | |||
</code> |= | |||
| [[setHitPointDamage]], [[getHitPointDamage]], [[setHitIndex]], [[getHitIndex]], [[setHit]], [[getHit]], [[setDamage]], [[damage]] |SEEALSO= | |||
}} | }} | ||
Line 39: | Line 48: | ||
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]] | [[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
Revision as of 03:35, 3 September 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] //]
- Example 2:
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
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