mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28 lines
610 B
Plaintext
28 lines
610 B
Plaintext
/*
|
|
* Author: commy2
|
|
* Returns all hitpoints and their respective selections of any vehicle. Might contain duplicates for non unique hitpoints in turrets.
|
|
*
|
|
* Arguments:
|
|
* 0: Vehicle <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* 0: Hitpoints <ARRAY>
|
|
* 1: Selections <ARRAY>
|
|
*
|
|
* Public: Yes
|
|
*
|
|
* Deprecated
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
ACE_DEPRECATED("ace_common_fnc_getHitPointsWithSelections","3.5.0","getAllHitPointsDamage");
|
|
|
|
params ["_vehicle"];
|
|
|
|
private "_hitPointsWithSelections";
|
|
_hitPointsWithSelections = getAllHitPointsDamage _vehicle;
|
|
|
|
_hitPointsWithSelections resize 2;
|
|
|
|
_hitPointsWithSelections
|