I followed that tutorial (I did edit the loadouts), but when I tried to boot up Arma I received this message:
File us_101ad\addons\test\autogen.hpp, line 230:
/CfgVehicles/B_US101AD_Rifleman_Light_01.EventHandlers: Undefined
base class 'EventHandlers'
The Rifleman_Light is the first unit in the code, and I assume the same "undefined base class" thing happens with the rest of the units as well.
This is the line of code for the Rifleman:
class B_US101AD_Rifleman_Light_01 : B_mas_ww2_Soldier_lite_F_us_hd {
author = "Spermatogenesis";
scope = 2;
scopeCurator = 2;
displayName = "Rifleman (Light)";
side = 1;
faction = "US_101AD";
identityTypes[] = { "Head_NATO" , "LanguageENG_F" };
class EventHandlers : EventHandlers {
class CBA_Extended_EventHandlers : CBA_Extended_EventHandlers_base {};
class ALiVE_orbatCreator {
init = "if (local (_this select 0)) then {_unit = _this select 0;_onSpawn = {_unit = _this select 0;_unit setUnitLoadout [['LIB_M1_Garand','','','',['LIB_8Rnd_762x63',8],[],''],[],[],['U_mas_ww2_B_CombatUniform_us',[['FirstAidKit',1],['LIB_8Rnd_762x63',10,8],['LIB_US_Mk_2',1,1]]],['V_mas_ww2_vest_USB',[['LIB_8Rnd_762x63',6,8]]],[],'H_mas_ww2_helmet_usn_B','',[],['','','','','','']];reload _unit;};[_unit] call _onSpawn;_unit addMPEventHandler ['MPRespawn', _onSpawn];};";
};
};
// custom attributes (do not delete)
ALiVE_orbatCreator_owned = 1;
};
I'm not sure what the problem is. Isn't the lines from "class CBA_Extended_EventHandlers" down to "['MPRespawn', _onSpawn];};";" the EventHandler? If so, how is it undefined? I feel like it doesn't have any reason to not work.