2015-01-11 16:42:31 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
*
|
2015-01-12 10:02:44 +00:00
|
|
|
* Read laser distance measurement from engine and update compatible info elements.
|
|
|
|
*
|
2015-01-11 16:42:31 +00:00
|
|
|
* Argument:
|
|
|
|
* Nothing
|
2015-01-12 10:02:44 +00:00
|
|
|
*
|
2015-01-11 16:42:31 +00:00
|
|
|
* Return value:
|
|
|
|
* Measured distance (Number)
|
|
|
|
*/
|
|
|
|
|
2015-01-12 10:02:44 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
private ["_dlgRangefinder", "_range"];
|
|
|
|
|
|
|
|
disableSerialization;
|
2015-01-12 10:02:44 +00:00
|
|
|
_dlgRangefinder = uiNamespace getVariable ["ACE_dlgRangefinder", displayNull];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
_range = ctrlText (_dlgRangefinder displayCtrl 151);
|
|
|
|
(_dlgRangefinder displayCtrl 1713151) ctrlSetText _range;
|
|
|
|
|
|
|
|
parseNumber _range
|