Arma 3 Scripting

Function in Vectors

BIS_fnc_vectorDivide

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

Description

Divides vector by scalar, by dividing all vector elements.

Note

vectorMultiply can be used instead as vector vectorMultiply 1/scale, but:

Syntax

[vector, divider] call BIS_fnc_vectorDivide

Parameters:

Returns: Array of Numbers

Examples

Example 1

[[123, 456, 789], 5] call BIS_fnc_vectorDivide;

Example 2

[[1, 2, 3, 4, 5, 6, 7, 8, 9], 5] call BIS_fnc_vectorDivide;

See also

vectorMultiply · BIS_fnc_vectorMultiply