Arma 3 Scripting

BIS_fnc_nearestPoint

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Function · Markdown · JSON · original wiki page

Description

Computes nearest point in a line.

Syntax

[start, end, point, is2D] call BIS_fnc_nearestPoint

Parameters:

Returns: Position - the line point that is closest to point

Examples

Example 1

private _idealLocation = [getMarkerPos "base", getMarkerPos "destination", getPos player, true] call BIS_fnc_nearestPoint;

See also

nearObjects · nearestObject · nearestObjects · BIS_fnc_nearestPosition · BIS_fnc_nearestNum · BIS_fnc_nearestRoad · BIS_fnc_nearestHelipad · BIS_fnc_isPosBlacklisted