Updated parameterization in Zeus module.

This commit is contained in:
Michael Braun 2015-08-04 01:20:41 +02:00
parent 275b0c4300
commit 13b7e7ae72
5 changed files with 13 additions and 13 deletions

View File

@ -19,11 +19,11 @@
#include "script_component.hpp"
private ["_logic","_removeAddons","_numCfgs","_cfg","_requiredAddon"];
private ["_removeAddons", "_numCfgs", "_cfg", "_requiredAddon"];
if !(isClass (configFile >> "ACE_Curator")) exitWith { ERROR("The ACE_Curator class does not exist") };
_logic = _this select 0;
params ["_logic"]
_removeAddons = [];
_numCfgs = count (configFile >> "ACE_Curator");
@ -36,7 +36,7 @@ for "_n" from 0 to (_numCfgs - 1) do {
if !(isClass (configFile >> "CfgPatches" >> _x)) exitWith {
_removeAddons pushBack (configName _cfg);
};
} forEach _requiredAddon;
} forEach _requierdAddon;
};
if (isText _cfg) then {

View File

@ -15,8 +15,9 @@
#include "script_component.hpp"
PARAMS_3(_logic,_units,_activated);
private ["_mouseOver","_unit","_captive"];
private ["_mouseOver", "_unit", "_captive"];
params ["_logic", "_units", "_activated"];
if !(_activated && local _logic) exitWith {};

View File

@ -15,8 +15,9 @@
#include "script_component.hpp"
PARAMS_3(_logic,_units,_activated);
private ["_mouseOver","_unit","_surrendering"];
private ["_mouseOver", "_unit", "_surrendering"];
params ["_mouseOver", "_units", "_surrendering"];
if !(_activated && local _logic) exitWith {};

View File

@ -15,8 +15,9 @@
#include "script_component.hpp"
PARAMS_3(_logic,_units,_activated);
private ["_mouseOver","_unit","_conscious"];
private ["_mouseOver", "_unit", "_conscious"];
params ["_logic", "_units", "_activated"];
if !(_activated && local _logic) exitWith {};

View File

@ -15,10 +15,7 @@
#include "script_component.hpp"
private ["_logic", "_units", "_activated"];
_logic = _this select 0;
_units = _this select 1;
_activated = _this select 2;
params ["_logic", "_units", "_activated"];
if !(_activated) exitWith {};