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