{"name":"BIS_fnc_destroyer01EdenInit","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.84"}],"since":{"game":"arma3","name":"Arma 3","version":"1.84"},"arma3_since":"1.84","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"mode","type":"Number","optional":false,"default":null,"description":"0 for ship base, 1 for array of objects","types":["Number"],"since":null,"text":"mode: Number - 0 for ship base, 1 for array of objects"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\nclass 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```","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};"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Destroyer","Functions","Introduced with Arma 3 version 1.84"],"docblock":{"author":"Bravo Zero One development, John_Spartan","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.","params":[{"index":0,"name":"mode","types":["Number"],"optional":false,"default":null,"description":"(Scalar)","text":"(Scalar)"},{"index":0,"name":null,"types":[],"optional":false,"default":null,"description":"ship Base/object\nand","text":"ship Base/object\nand"},{"index":1,"name":null,"types":["Array","Object"],"optional":false,"default":null,"description":null,"text":"array of objects in variable in base objects names-pace [\"bis_carrierParts\", []];"}],"returns":{"types":["Nothing"],"text":"nothing\nShip's position is updated in EDEN editor."},"examples":["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};"],"syntax":null,"execution":"- Call from EH on the main ship's base model (blank model with memory points and reference config).","notes":null,"requirements":"- An array of ship parts/objects as a variable attached to main ship base. This array is created by main BIS_fnc_Destroyer01Init.","meta":{},"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."},"filled_from_docblock":["description","examples"]}