{"name":"BIS_fnc_destroyer01EdenDelete","operator":null,"title":"BIS fnc destroyer01EdenDelete","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_destroyer01EdenDelete","revid":286034,"updated":"2021-06-20T17:24:36Z","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 delete dynamic ships (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 delete ship parts in EDEN editor after main object is deleted.","syntaxes":[{"syntax":"[] call BIS_fnc_destroyer01EdenDelete","since":null,"effect":null,"exec":null,"params":[{"name":"mode","type":"Number","types":["Number"],"optional":false,"default":null,"description":"(Scalar)","since":null,"text":"0: (Scalar)","source":"docblock"},{"name":"param0","type":null,"types":[],"optional":false,"default":null,"description":"ship Base/object\nand","since":null,"text":"0: ship Base/object\nand","source":"docblock"},{"name":"param1","type":"Array, Object","types":["Array","Object"],"optional":false,"default":null,"description":null,"since":null,"text":"1: array of objects in variable in base objects name-space [\"bis_carrierParts\", []];","source":"docblock"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"nothing\nShip's parts are deleted in EDEN editor.","source":"docblock"}}],"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_Destroyer01EdenInit\";            //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_Destroyer01EdenInit\";            //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 delete dynamic ships (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 delete ship parts in EDEN editor after main object is deleted.","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 name-space [\"bis_carrierParts\", []];"}],"returns":{"types":["Nothing"],"text":"nothing\nShip's parts are deleted 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_Destroyer01EdenInit\";            //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 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 delete dynamic ships (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 delete ship parts in EDEN editor after main object is deleted.\n\nExecution:\n- Call from EH on the main ship 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_Destroyer01EdenInit\";            //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 name-space [\"bis_carrierParts\", []];\n\nReturns: nothing\nResult: Ship's parts are deleted in EDEN editor."},"filled_from_docblock":["description","params","returns","examples"]}