Ignore playable logic hitpoints (#6517)

This commit is contained in:
SilentSpike 2018-08-12 12:21:06 +01:00 committed by GitHub
parent 923c25163f
commit a182336880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,9 @@
reverse _allHitPoints;
if (_allHitPoints param [0, ""] != "ACE_HDBracket") then {
if ((getText (([_unit] call CBA_fnc_getObjectConfig) >> "simulation")) == "UAVPilot") exitWith {TRACE_1("ignore UAV AI",typeOf _unit);};
private _config = [_unit] call CBA_fnc_getObjectConfig;
if (getText (_config >> "simulation") == "UAVPilot") exitWith {TRACE_1("ignore UAV AI",typeOf _unit);};
if (getNumber (_config >> "isPlayableLogic") == 1) exitWith {TRACE_1("ignore logic unit",typeOf _unit)};
ERROR_1("Bad hitpoints for unit type ""%1""",typeOf _unit);
} else {
// Calling this function inside curly brackets allows the usage of