Arma 3 Scripting

Function in Geometry

BIS_fnc_getLineDist

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

Description

Return the distance between two sections of a virtual straight line.

Syntax

[start1, length1, start2, length2] call BIS_fnc_getLineDist

Parameters:

Returns: Number

Examples

Example 1

private _distance = [0,5,15,20] call BIS_fnc_getLineDist; // returns 10

See also

distance