When syncing the module to a unit I'd expect to receive a 'connectionChanged3DEN' in my module. Instead no event is received. Note that attributesChanged3DEN events are received, as wall as unregister from world.
The module function:
Written by TeTeT
support for 3den editor
params [["_mode", ""], ["_input", []]];
private ["_nimitz"];
systemChat str _mode;
switch _mode do {
case "init" : { systemChat "Parking initialized ;)"; }; case "attributesChanged3DEN": { systemChat "Do Stuff ..."; }; case "registeredToWorld3DEN": { // add3DENEventHandler ["connectionChanged3DEN", {diag_log "does this work?"; hint "Got event"; systemChat "Got event";}]; }; case "unregisteredFromWorld3DEN": { systemChat "Unregistering..."; }; case "connectionChanged3DEN": { systemChat "new connection ..."; };
};
true
The module definition:
class TTT_NimitzAmbiance3 { units[] = { "TTT_ModuleNimitzAmbiance3" }; requiredVersion = 1.0; requiredAddons[] = { "A3_Modules_F", "JDG_carrier" }; };
and
class TTT_NimitzAmbiance3 : Module_F { scope = 2; displayName = "Nimitz Ambiance 3"; icon = "\TTT_NimitzFunctions\img_ambiance\soldier.paa"; category = "TTT_Nimitz"; function = "TTT_fnc_moduleAmbiance3"; functionPriority = 2; isGlobal = 0; isPersistent = 0; isTriggerActivated = 0; isDisposable = 0; is3DEN = 1; class ModuleDescription: ModuleDescription { description = "Nimitz Ambiance module 3, eden spawned vehicles"; sync[] = {"JDG_carrier_spawner"}; }; class Arguments: ArgumentsBaseUnits { class Units: Units {}; class Parking { displayName = "Parking"; description = "Populate the carrier"; typeName = "BOOL"; defaultValue = false; }; }; };