getAllHitPointsDamage: Difference between revisions
Jump to navigation
Jump to search
(Version changed) |
Pabstmirror (talk | contribs) No edit summary |
||
Line 39: | Line 39: | ||
[[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}}}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on September 27, 2015 - 00:42 (UTC)</dd> | |||
<dt class="note">[[User:PabstMirror|PabstMirror]]</dt> | |||
<dd class="note">Will only return '''[]''' instead of '''[[],[],[]]''' if object has no hitpoints | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 01:42, 27 September 2015
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 vehicle
- Parameters:
- vehicle : Object - vehicle to be queried
- Return Value:
- Number
Examples
- Example 1:
getAllHitPointsDamage player; //[ // ["HitFace","HitNeck","HitHead","HitPelvis","HitAbdomen","HitDiaphragm","HitChest","HitBody","HitArms","HitHands","HitLegs"], // ["","neck","head","pelvis","spine1","spine2","spine3","body","","hands","legs"], // [0,0.0939002,0.0319932,0.0858595,0.174491,1,1,0.168495,1,0.5,0.195907] //]
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
Notes
Bottom Section
- Posted on September 27, 2015 - 00:42 (UTC)
- PabstMirror
- Will only return [] instead of [[],[],[]] if object has no hitpoints