2015-01-11 16:42:31 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
2015-09-21 12:20:53 +00:00
|
|
|
* Returns all hitpoints and their respective selections of any vehicle. Might contain duplicates for non unique hitpoints in turrets.
|
2015-01-11 16:42:31 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2015-09-21 12:20:53 +00:00
|
|
|
* 0: Vehicle <OBJECT>
|
2015-01-11 16:42:31 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2015-09-21 12:20:53 +00:00
|
|
|
* 0: Hitpoints <ARRAY>
|
|
|
|
* 1: Selections <ARRAY>
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*
|
|
|
|
* Deprecated
|
2015-01-11 16:42:31 +00:00
|
|
|
*/
|
2015-01-13 19:56:02 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-09-21 20:09:54 +00:00
|
|
|
ACE_DEPRECATED("ace_common_fnc_getHitPointsWithSelections","3.5.0","getAllHitPointsDamage");
|
2015-09-21 19:25:18 +00:00
|
|
|
|
2015-08-30 19:13:29 +00:00
|
|
|
params ["_vehicle"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-12-12 15:48:54 +00:00
|
|
|
private _hitPointsWithSelections = getAllHitPointsDamage _vehicle;
|
2015-09-21 12:20:53 +00:00
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
// get correct format on vehicles without any hitpoints
|
|
|
|
if (_hitPointsWithSelections isEqualTo []) then {
|
2015-09-26 04:36:35 +00:00
|
|
|
_hitPointsWithSelections = [[],[],[]];
|
2015-09-26 01:16:55 +00:00
|
|
|
};
|
|
|
|
|
2015-08-30 19:13:29 +00:00
|
|
|
_hitPointsWithSelections resize 2;
|
2015-09-21 12:20:53 +00:00
|
|
|
|
2015-08-30 19:13:29 +00:00
|
|
|
_hitPointsWithSelections
|