Minor fixes (#6465)

* Fix example in ace_map_fnc_simulateMapLight

* Make fnc_addActionToObject public

* Repair - Delete unnecessary condition
This commit is contained in:
Dystopian 2018-07-27 20:24:56 +03:00 committed by PabstMirror
parent 5ad9641ee6
commit 4e0df9b90e
3 changed files with 3 additions and 7 deletions

View File

@ -15,7 +15,7 @@
* Example:
* [cursorTarget, 0, ["ACE_TapShoulderRight"],VulcanPinchAction] call ace_interact_menu_fnc_addActionToObject;
*
* Public: No
* Public: Yes
*/
#include "script_component.hpp"

View File

@ -12,7 +12,7 @@
* None
*
* Example:
* [CONTROL, 5, [5, 4, 6], []] call ACE_map_fnc_simulateMapLights
* [CONTROL, 5, [5, 4, 6], []] call ace_map_fnc_simulateMapLight
*
* Public: No
*/

View File

@ -126,11 +126,7 @@ private _hitpointGroups = getArray(configFile >> "CfgVehicles" >> _type >> QGVAR
if (_hitpoint in TRACK_HITPOINTS) then {
// Tracks should always be unique
if (_hitpoint in _processedHitpoints) exitWith {TRACE_3("Duplicate Track",_hitpoint,_forEachIndex,_selection);};
if (_hitpoint == "HitLTrack") then {
_position = compile format ["private _return = _target selectionPosition ['%1', 'HitPoints']; _return set [1, 0]; _return", _selection];
} else {
_position = compile format ["private _return = _target selectionPosition ['%1', 'HitPoints']; _return set [1, 0]; _return", _selection];
};
TRACE_4("Adding RepairTrack",_hitpoint,_forEachIndex,_selection,_text);
private _condition = {[_this select 1, _this select 0, _this select 2 select 0, "RepairTrack"] call DFUNC(canRepair)};
private _statement = {[_this select 1, _this select 0, _this select 2 select 0, "RepairTrack"] call DFUNC(repair)};