ACE3/addons/common/functions/fnc_getHitPointsWithSelections.sqf

28 lines
687 B
Plaintext
Raw Normal View History

/*
* 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.
*
* Arguments:
2015-09-21 12:20:53 +00:00
* 0: Vehicle <OBJECT>
*
* Return Value:
2015-09-21 12:20:53 +00:00
* 0: Hitpoints <ARRAY>
* 1: Selections <ARRAY>
*
* Public: Yes
*
* Deprecated
*/
2015-01-13 19:56:02 +00:00
#include "script_component.hpp"
2015-09-21 19:25:18 +00:00
ACE_WARNINGFORMAT_3("%1 is deprecated. Support will be dropped in version %2. Replaced by %3","ace_common_fnc_getHitPointsWithSelections","1.5","getAllHitPointsDamage");
params ["_vehicle"];
private "_hitPointsWithSelections";
_hitPointsWithSelections = getAllHitPointsDamage _vehicle;
2015-09-21 12:20:53 +00:00
_hitPointsWithSelections resize 2;
2015-09-21 12:20:53 +00:00
_hitPointsWithSelections