2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-08-30 19:13:29 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
*
|
|
|
|
* Returns all damageable selections without hitpoints of any vehicle.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2017-06-08 13:31:51 +00:00
|
|
|
* 0: A vehicle, not the classname <OBJECT>
|
2015-08-30 19:13:29 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* The selections without hitpoints, i.e. reflectors. <ARRAY>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [car] call ace_common_fnc_getSelectionsWithoutHitPoints
|
|
|
|
*
|
|
|
|
* Public: No
|
2015-08-30 19:13:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_vehicle"];
|
|
|
|
|
2015-12-12 15:48:54 +00:00
|
|
|
private _hitPointsFull = getAllHitPointsDamage _vehicle;
|
2015-08-30 19:13:29 +00:00
|
|
|
|
2015-12-12 15:48:54 +00:00
|
|
|
private _allSelectionsWithoutHitpoints = [];
|
2015-08-30 19:13:29 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
if (_x == "") then {
|
|
|
|
_allSelectionsWithoutHitpoints pushBack (_hitPointsFull select 1 select _forEachIndex);
|
|
|
|
};
|
|
|
|
} forEach (_hitPointsFull select 0);
|
|
|
|
|
|
|
|
_allSelectionsWithoutHitpoints
|