{"name":"BIS_fnc_vectorAdd","title":"BIS fnc vectorAdd","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_vectorAdd","revid":349009,"updated":"2023-11-08T14:47:05Z","groups":["Vectors"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Returns the sum of two vectors.\n\n> [!NOTE]\n> **Arma 3:** If the vector is either 2D or 3D use vectorAdd instead.","syntaxes":[{"syntax":"[vector1, vector2] call BIS_fnc_vectorAdd","params":[{"name":"vector1","type":"Array of Numbers","type_expr":"Array<Number>"},{"name":"vector2","type":"Array of Numbers","type_expr":"Array<Number>"}],"returns":{"type":"Array of Numbers","type_expr":"Array<Number>","description":"resulting vector"}}],"examples":[{"code":["[[1, 1, 1, 1, 1], [2, 5, 3, 1, 1]] call BIS_fnc_vectorAdd; // returns [3,6,4,2,2]"]}],"see_also":["vectorAdd"]}