Page MenuHomeFeedback Tracker

Module does not get connectionChanged3DEN event
New, WishlistPublic

Description

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;
                        };

                };
        };

Details

Legacy ID
2785250022
Severity
None
Resolution
Open
Reproducibility
Always
Category
Eden Editor
Steps To Reproduce

Create a module and set a connection between it and a unit. No event is received.

Additional Information

Happens on RC, not tested on dev.

Event Timeline

TeTeT edited Steps To Reproduce. (Show Details)Feb 13 2016, 2:13 AM
TeTeT edited Additional Information. (Show Details)
TeTeT set Category to Eden Editor.
TeTeT set Reproducibility to Always.
TeTeT set Severity to None.
TeTeT set Resolution to Open.
TeTeT set Legacy ID to 2785250022.May 8 2016, 1:43 PM