Arma 3 Scripting

Function in Curve3DEN

BIS_fnc_richCurve_edenComputeNearestSegment

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

Description

Computes the nearest baked segment from given 3D position

Syntax

[] call BIS_fnc_richCurve_edenComputeNearestSegment

Parameters:

Returns: Array - The start and end vectors of segment

Function header

The comment at the top of the function's file in the game; this page's description, params, returns come from it.

/*
Author: Nelson Duarte <@Nelson_G_Duarte>

Description:
Computes the nearest baked segment from given 3D position

Parameter(s):
_this select 0: Object - The curve

Returns:
Array - The start and end vectors of segment
*/