{"name":"BIS_fnc_carrier01PosUpdate","operator":null,"title":"BIS fnc carrier01PosUpdate","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_carrier01PosUpdate","revid":273317,"updated":"2021-06-13T00:49:49Z","groups":["Aircraft Carrier"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"- This is a sub function designed to update dynamic aircraft carriers position in EDEN editor. Carrier consists of multiple sub-objects that are linked together bnased on precise memory point positions in 3D space. Function will update initial object positions when player drggs the object in EDEN editor.","syntaxes":[{"syntax":"[mode, param0, param1] call BIS_fnc_carrier01PosUpdate","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":"carrier Base/object\nand","since":null,"text":"0: carrier Base/object\nand","source":"docblock"},{"name":"param1","type":"Array, Object, Namespace","types":["Array","Object","Namespace"],"optional":false,"default":null,"description":null,"since":null,"text":"1: array of objects in variable in base objects namespace [\"bis_carrierParts\", []];","source":"docblock"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"nothing\nAircraft Carrier's possition is updated in EDEN editor.","source":"docblock"},"inferred":true}],"examples":[{"text":"```sqf\nclass Eventhandlers\n{\n    init = \"_this call BIS_fnc_Carrier01Init\";                                //main init fnc, will assemble carrier in game\n    AttributesChanged3DEN = \"_this call BIS_fnc_Carrier01EdenInit\";            //function to update objects position in EDEN editor if attributes changed by player\n    Dragged3DEN = \"_this call BIS_fnc_Carrier01PosUpdate\";                    //function to update objects position in EDEN editor if attributes changed by player\n    RegisteredToWorld3DEN = \"_this call BIS_fnc_Carrier01EdenInit\";            //initial EDEN init fnc (main init is still called)\n    UnregisteredFromWorld3DEN = \"_this call BIS_fnc_Carrier01EdenDelete\";    //function  to delete all carrier objects in EDEN editor\n};\n```","code":["class Eventhandlers\n{\n    init = \"_this call BIS_fnc_Carrier01Init\";                                //main init fnc, will assemble carrier in game\n    AttributesChanged3DEN = \"_this call BIS_fnc_Carrier01EdenInit\";            //function to update objects position in EDEN editor if attributes changed by player\n    Dragged3DEN = \"_this call BIS_fnc_Carrier01PosUpdate\";                    //function to update objects position in EDEN editor if attributes changed by player\n    RegisteredToWorld3DEN = \"_this call BIS_fnc_Carrier01EdenInit\";            //initial EDEN init fnc (main init is still called)\n    UnregisteredFromWorld3DEN = \"_this call BIS_fnc_Carrier01EdenDelete\";    //function  to delete all carrier objects in EDEN editor\n};"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Aircraft Carrier","Functions","Introduced with Arma 3 version 1.00"],"docblock":{"author":"Bravo Zero One development, John_Spartan","description":"- This is a sub function designed to update dynamic aircraft carriers position in EDEN editor. Carrier consists of multiple sub-objects that are linked together bnased on precise memory point positions in 3D space. Function will update initial object positions when player drggs the object in EDEN editor.","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":"carrier Base/object\nand","text":"carrier Base/object\nand"},{"index":1,"name":null,"types":["Array","Object","Namespace"],"optional":false,"default":null,"description":null,"text":"array of objects in variable in base objects namespace [\"bis_carrierParts\", []];"}],"returns":{"types":["Nothing"],"text":"nothing\nAircraft Carrier's possition is updated in EDEN editor."},"examples":["class Eventhandlers\n{\n    init = \"_this call BIS_fnc_Carrier01Init\";                                //main init fnc, will assemble carrier in game\n    AttributesChanged3DEN = \"_this call BIS_fnc_Carrier01EdenInit\";            //function to update objects position in EDEN editor if attributes changed by player\n    Dragged3DEN = \"_this call BIS_fnc_Carrier01PosUpdate\";                    //function to update objects position in EDEN editor if attributes changed by player\n    RegisteredToWorld3DEN = \"_this call BIS_fnc_Carrier01EdenInit\";            //initial EDEN init fnc (main init is still called)\n    UnregisteredFromWorld3DEN = \"_this call BIS_fnc_Carrier01EdenDelete\";    //function  to delete all carrier objects in EDEN editor\n};"],"syntax":null,"execution":"- Call from EH on the main carrier base model (blank model with momory points and reference config).","notes":null,"requirements":"- An array of carrier parts/objects as a variable attached to main carrier base. This array is created by main BIS_fnc_Carrier01Init.","meta":{},"text":"Author: Bravo Zero One development\n- John_Spartan\n\nDescription:\n- This is a sub function designed to update dynamic aircraft carriers position in EDEN editor. Carrier consists of multiple sub-objects that are linked together bnased on precise memory point positions in 3D space.\nFunction will update initial object positions when player drggs the object in EDEN editor.\n\nExucution:\n- Call from EH on the main carrier base model (blank model with momory points and reference config).\n\n    Example:\n    class Eventhandlers\n    {\n        init = \"_this call BIS_fnc_Carrier01Init\";                                //main init fnc, will assemble carrier in game\n        AttributesChanged3DEN = \"_this call BIS_fnc_Carrier01EdenInit\";            //function to update objects position in EDEN editor if attributes changed by player\n        Dragged3DEN = \"_this call BIS_fnc_Carrier01PosUpdate\";                    //function to update objects position in EDEN editor if attributes changed by player\n        RegisteredToWorld3DEN = \"_this call BIS_fnc_Carrier01EdenInit\";            //initial EDEN init fnc (main init is still called)\n        UnregisteredFromWorld3DEN = \"_this call BIS_fnc_Carrier01EdenDelete\";    //function  to delete all carrier objects in EDEN editor\n    };\n\nRequirments:\n- An array of carrier parts/objects as a variable attached to main carrier base. This array is created by main BIS_fnc_Carrier01Init.\n\nParameter(s):\n    _this select 0: mode (Scalar)\n    0: carrier Base/object\n    and\n    1: array of objects in variable in base objects namespace [\"bis_carrierParts\", []];\n\nReturns: nothing\nResult: Aircraft Carrier's possition is updated in EDEN editor."},"filled_from_docblock":["description","params","syntax","returns","examples"]}