tortuosit 485 Posted May 24, 2018 Hi, I'm in Eden, I manually place some playable units and want apply some code to them, (like "setunitloadout") - from their own init fields. But "_this" does not have the unit identifier, right? How can I do it? If it was the player, I can simply access him via "player". So, more in general: how to access an object from its own init? Thx Share this post Link to post Share on other sites
ProfTournesol 956 Posted May 24, 2018 'This' without the underscore Share this post Link to post Share on other sites
mudnut 5 Posted May 24, 2018 ex: //init field [this] call mud_fnc_init; //mud_fnc_init: params[["_unit",objNull,[objNull]]]; //_unit is editor reference to unit Share this post Link to post Share on other sites