{"name":"BIS_fnc_destroyer01EdenInit","title":"BIS fnc destroyer01EdenInit","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_destroyer01EdenInit","revid":378106,"updated":"2026-02-14T23:03:19Z","groups":["Destroyer"],"status":"ok","games":{"arma3":"1.84"},"since":"arma3 1.84","arma3_since":"1.84","description":"- This is a sub function designed to assemble dynamic ship (multi-part structure) in EDEN editor. Ship consists of multiple sub-objects that are linked together based on precise memory point positions in 3D space. Function will update initial init setup on EDEN editor invoked.","syntaxes":[{"syntax":"[mode] call BIS_fnc_destroyer01EdenInit","params":[{"name":"mode","type":"Number","description":"0 for ship base, 1 for array of objects","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["class Eventhandlers\n{\n    init = \"_this call BIS_fnc_Destroyer01Init\";                                //main init fnc, will assemble ship in game\n    AttributesChanged3DEN = \"_this call BIS_fnc_Destroyer01PosUpdate\";            //function to update objects position in EDEN editor if attributes changed by player\n    Dragged3DEN = \"_this call BIS_fnc_Destroyer01PosUpdate\";                    //function to update objects position in EDEN editor if attributes changed by player\n    RegisteredToWorld3DEN = \"_this call BIS_fnc_Destroyer01EdenInit\";            //initial EDEN init fnc (main init is still called)\n    UnregisteredFromWorld3DEN = \"_this call BIS_fnc_Destroyer01EdenDelete\";        //function  to delete all ship objects in EDEN editor\n};"]}],"docblock":{"text":"Author: Bravo Zero One development\n- John_Spartan\n\nDescription:\n- This is a sub function designed to assemble dynamic ship (multi-part structure) in EDEN editor. Ship consists of multiple sub-objects that are linked together based on precise memory point positions in 3D space.\nFunction will update initial init setup on EDEN editor invoked.\n\nExecution:\n- Call from EH on the main ship's base model (blank model with memory points and reference config).\n\n    Example:\n    class Eventhandlers\n    {\n        init = \"_this call BIS_fnc_Destroyer01Init\";                                //main init fnc, will assemble ship in game\n        AttributesChanged3DEN = \"_this call BIS_fnc_Destroyer01PosUpdate\";            //function to update objects position in EDEN editor if attributes changed by player\n        Dragged3DEN = \"_this call BIS_fnc_Destroyer01PosUpdate\";                    //function to update objects position in EDEN editor if attributes changed by player\n        RegisteredToWorld3DEN = \"_this call BIS_fnc_Destroyer01EdenInit\";            //initial EDEN init fnc (main init is still called)\n        UnregisteredFromWorld3DEN = \"_this call BIS_fnc_Destroyer01EdenDelete\";        //function  to delete all ship objects in EDEN editor\n    };\n\nRequirements:\n- An array of ship parts/objects as a variable attached to main ship base. This array is created by main BIS_fnc_Destroyer01Init.\n\nParameter(s):\n    _this select 0: mode (Scalar)\n    0: ship Base/object\n    and\n    1: array of objects in variable in base objects names-pace [\"bis_carrierParts\", []];\n\nReturns: nothing\nResult: Ship's position is updated in EDEN editor.","author":"Bravo Zero One development, John_Spartan"},"filled_from_docblock":["description","examples"]}