{"name":"BIS_fnc_carrier01PosUpdate","title":"BIS fnc carrier01PosUpdate","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_carrier01PosUpdate","revid":379552,"updated":"2026-10-31T13:46:44Z","groups":["Aircraft Carrier"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Moves all parts of a dynamic aircraft carrier back into place relative to its base object.\nFor every entry of the base's `\"bis_carrierParts\"` variable, the part gets the base's vectorDir and vectorUp and is moved with setPosWorld to the position of its memory point on the base. It does nothing where isServer is false.\n\nThe function is called from the carrier base's `Dragged3DEN` Eden event handler when the carrier is dragged in Eden Editor. As the code does not depend on Eden, it can also be called by scripts after the base has been moved during a mission.","syntaxes":[{"syntax":"carrier call BIS_fnc_carrier01PosUpdate","params":[{"name":"carrier","type":"Object","description":"the carrier base object holding the `\"bis_carrierParts\"` variable","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"text":"Carrier base config (event handlers as given in the function's header):\n\n```cpp\nclass EventHandlers\n{\n    init = \"_this call BIS_fnc_carrier01Init\";\n    AttributesChanged3DEN = \"_this call BIS_fnc_carrier01EdenInit\";\n    Dragged3DEN = \"_this call BIS_fnc_carrier01PosUpdate\";\n    RegisteredToWorld3DEN = \"_this call BIS_fnc_carrier01EdenInit\";\n    UnregisteredFromWorld3DEN = \"_this call BIS_fnc_carrier01EdenDelete\";\n};\n```"},{"text":"Move a carrier during a mission (server side):\n\n```sqf\nmyCarrier setPosWorld (getPosWorld myCarrier vectorAdd [0, 500, 0]);\nmyCarrier call BIS_fnc_carrier01PosUpdate;\n```","code":["myCarrier setPosWorld (getPosWorld myCarrier vectorAdd [0, 500, 0]);\nmyCarrier call BIS_fnc_carrier01PosUpdate;"]}],"see_also":["BIS_fnc_carrier01Init","BIS_fnc_carrier01EdenInit","BIS_fnc_carrier01EdenDelete","BIS_fnc_destroyer01PosUpdate"]}