RegisteredToWorld3DEN Eventhandler does not trigger.
Tried this way as well (eventhandlers class):
init = "(_this select 0) addeventhandler ['RegisteredToWorld3DEN','call EUTW_3DEN_fnc_onHQregistered']";
RegisteredToWorld3DEN Eventhandler does not trigger.
Tried this way as well (eventhandlers class):
init = "(_this select 0) addeventhandler ['RegisteredToWorld3DEN','call EUTW_3DEN_fnc_onHQregistered']";
In the meantime... you can use Poor man's RegisteredToWorld3DEN EH:
init EH + and is3DEN check. However it triggers if you load a mission as well. I assume RegisteredToWorld3DEN wouldn't work that way. At least.. it should only trigger if the user places the entity.
15-02-2017
EXE rev. 140420
Still not working.
Example:
class SideBLUFOR_F: Logic { displayName = "Faction 1 HQ"; vehicleClass = "SystemEUTW"; scope = 2; icon = "EUTW_3DEN\resources\hq1.paa"; class EventHandlers { RegisteredToWorld3DEN = "test = true"; AttributesChanged3DEN = "call EUTW_3DEN_fnc_onHQAttributesChanged"; UnregisteredFromWorld3DEN = "call EUTW_3DEN_fnc_onHQUnregistered"; }; class Attributes { DESCRIPTION("HQ"); }; };
test still stays nil. Also not working with "class man"
Let me know if I do anything wrong. All the other 3DEN eventhandlers are working and always worked well.
This now (game version 1.7) works when object is re-added to the scenario after undoing a delete operation. Has no effect when object is initially placed or copied into the scenario.
Tested using the following:
class CIS_Armed_Civ: C_man_1 { displayName = "Armed Civilian"; faction = "CIV_F"; author = "Rodgers [CIS]"; class EventHandlers { registeredToWorld3DEN = "(_this select 0) addWeapon 'arifle_MX_F';"; }; };
Has no effect when object is initially placed or copied into the scenario.
That's because when object is placed, it is handled by its init