{"name":"BIS_fnc_vectorAdd","operator":null,"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","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"vector1","type":"Array of Numbers","optional":false,"default":null,"description":null,"types":["Array","Number"],"since":null,"text":"vector1: Array of Numbers"},{"name":"vector2","type":"Array of Numbers","optional":false,"default":null,"description":null,"types":["Array","Number"],"since":null,"text":"vector2: Array of Numbers"}],"returns":{"type":"Array of Numbers","types":["Array","Number"],"description":"resulting vector","text":"Array of Numbers - resulting vector"}}],"examples":[{"text":"```sqf\n[[1, 1, 1, 1, 1], [2, 5, 3, 1, 1]] call BIS_fnc_vectorAdd; // returns [3,6,4,2,2]\n```","code":["[[1, 1, 1, 1, 1], [2, 5, 3, 1, 1]] call BIS_fnc_vectorAdd; // returns [3,6,4,2,2]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["vectorAdd"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Vectors","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}