{"name":"BIS_fnc_vectorDiff","operator":null,"title":"BIS fnc vectorDiff","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_vectorDiff","revid":327961,"updated":"2022-07-13T13:36:27Z","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 a vector that is the difference between two vectors.\n\n> [!NOTE]\n> **Arma 3:** Use vectorDiff instead.","syntaxes":[{"syntax":"[vector1, vector2] call BIS_fnc_vectorDiff","since":null,"effect":null,"exec":null,"params":[{"name":"vector1","type":"Array","optional":false,"default":null,"description":null,"types":["Array"],"since":null,"text":"vector1: Array"},{"name":"vector2","type":"Array","optional":false,"default":null,"description":null,"types":["Array"],"since":null,"text":"vector2: Array"}],"returns":{"type":"Array","types":["Array"],"description":"vector difference","text":"Array - vector difference"}}],"examples":[{"text":"```sqf\nprivate _vectorDiff = [[1,2,3], [5,6,7]] call BIS_fnc_vectorDiff;\n```","code":["private _vectorDiff = [[1,2,3], [5,6,7]] call BIS_fnc_vectorDiff;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["vectorDiff"],"notes":[{"user":"KingArthur98","date":"2020-11-03T07:42:00Z","text":"Note that this function is unreliable in Arma 2 and gives different outputs than the same function on Arma 3 OR the native vectorDiff Arma 3 command.\n\nIf you want to be sure, replace this function with a manual calculation in Arma 2."}],"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":[]}