Page tree
Skip to end of metadata
Go to start of metadata




Introduced in

Version:1.19

Description

Description:Returns the distance between two sections of a straight line.

Syntax

Syntax:[start1, length1, start2, length2] call fn_vbs_getLineDist
Parameters:
  • start1: Number - Start point of first section.
  • length1: Number - Length of first section.
  • start2: Number - Start point of second section.
  • length2: Number - Length of the second section.
Return Value:

Number - Can be one of the following:

  • If the result is < 0, the sections are overlapping.
  • If the result is 0, the sections share one point.
  • If the result is > 0, the sections are not connected.

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.

Examples

Examples:

Additional Information

See also: 
Multiplayer: 
Problems: 

Notes