ctrlMapScale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Made useful example. Thanks to KK's blog for correct A3 display and control number)
mNo edit summary
Line 18: Line 18:
   
   
|x1= <code>_control = ([[findDisplay]] 12) [[displayCtrl]] 51 //Arma 3
|x1= <code>_control = ([[findDisplay]] 12) [[displayCtrl]] 51 //Arma 3
_scale = ctrlMapScale _control//returns number from 1 to 0.001</code>|= Example 1
_scale = [[ctrlMapScale]] _control//returns number from 1 to 0.001</code>|= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 05:05, 10 February 2015

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Return the current scale of the map control.
Groups:
Uncategorised

Syntax

Syntax:
Number = ctrlMapScale controlName
Parameters:
controlName: Control
Return Value:
Number

Examples

Example 1:
_control = (findDisplay 12) displayCtrl 51 //Arma 3 _scale = ctrlMapScale _control//returns number from 1 to 0.001

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

-Giova 16:53, 23 January 2007 (CET) : this command doesn't works under arma v1.02, it allways return: 1

Bottom Section