ACE3/TO_MERGE/agm/FireControlSystem/functions/fn_getRange.sqf

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