mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
22 lines
466 B
Plaintext
22 lines
466 B
Plaintext
/*
|
|
* Author: commy2
|
|
*
|
|
* Read laser distance measurement from engine and update compatible info elements.
|
|
*
|
|
* Argument:
|
|
* Nothing
|
|
*
|
|
* Return value:
|
|
* Measured distance (Number)
|
|
*/
|
|
|
|
private ["_dlgRangefinder", "_range"];
|
|
|
|
disableSerialization;
|
|
_dlgRangefinder = uiNamespace getVariable ["AGM_dlgRangefinder", displayNull];
|
|
|
|
_range = ctrlText (_dlgRangefinder displayCtrl 151);
|
|
(_dlgRangefinder displayCtrl 1713151) ctrlSetText _range;
|
|
|
|
parseNumber _range
|