Arma 3 Scripting

Function in Vectors

BIS_fnc_vectorAdd

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns the sum of two vectors.

Note

Arma 3: If the vector is either 2D or 3D use vectorAdd instead.

Syntax

[vector1, vector2] call BIS_fnc_vectorAdd

Parameters:

Returns: Array of Numbers - resulting vector

Examples

Example 1

[[1, 1, 1, 1, 1], [2, 5, 3, 1, 1]] call BIS_fnc_vectorAdd; // returns [3,6,4,2,2]

See also

vectorAdd