ACE3/addons/common/functions/fnc_getSelectionsWithoutHitPoints.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

32 lines
691 B
Plaintext

/*
* Author: commy2
*
* Returns all damageable selections without hitpoints of any vehicle.
*
* Arguments:
* 0: A vehicle, not the classname <OBJECT>
*
* Return Value:
* The selections without hitpoints, i.e. reflectors. <ARRAY>
*
* Example:
* [car] call ace_common_fnc_getSelectionsWithoutHitPoints
*
* Public: No
*/
#include "script_component.hpp"
params ["_vehicle"];
private _hitPointsFull = getAllHitPointsDamage _vehicle;
private _allSelectionsWithoutHitpoints = [];
{
if (_x == "") then {
_allSelectionsWithoutHitpoints pushBack (_hitPointsFull select 1 select _forEachIndex);
};
} forEach (_hitPointsFull select 0);
_allSelectionsWithoutHitpoints