ctrlMapScale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(format, seealso, removed ancient note)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the current scale of given map control.  |= Description
| Returns the current scale of given map control.  |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''ctrlMapScale''' ctrl|= Syntax
| '''ctrlMapScale''' ctrl|SYNTAX=


|p1=  ctrl: [[Control]] |= Parameter 1
|p1=  ctrl: [[Control]] |PARAMETER1=


| [[Number]] |= Return value
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|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>|EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[ctrlScale]], [[ctrlSetScale]] |= See also
| [[ctrlScale]], [[ctrlSetScale]] |SEEALSO=


}}
}}

Revision as of 14:36, 7 April 2019

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

Description

Description:
Returns the current scale of given map control.
Groups:
Uncategorised

Syntax

Syntax:
ctrlMapScale ctrl
Parameters:
ctrl: 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:
ctrlScalectrlSetScale

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


Bottom Section