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




Introduced in

Version:3.9.1

Description

Description: Converts a position into a human-readable string in a given coordinate system.

Syntax

Syntax: call fn_vbs_posToCoordString [coordPos, coordType, precisionVBS, precisionLL, precisionLLMS]
Parameters:
  • coordPos: Array - Source VBS ASL2 position.
  • coordType: Array - Coordinate system used for output.
  • precisionVBS: Number - Number of decimal points to be shown (applies only to VBS coordinates), use nil to use the default value (optional).
  • precisionLL: Number - Number of decimal points to be shown (applies only to LL coordinates), use nil to use the default value (optional).
  • precisionLLMS: Number - Number of decimal points to be shown (applies only to LLMS coordinates), use nil to use the default value (optional).
Return Value: String - The VBS position translated into a string of a given coordinate system.

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:
[[2500,2500,2500], "LL"] call fn_vbs_posToCoordString
[[2500.545454,2500.545454,2500.545454], "LL", 0, 4, 0] call fn_vbs_posToCoordString

Additional Information

See also: fn vbs coordinatesDialog
Multiplayer: 
Problems: 

Notes