ctrlSetScale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
(updated description and example, removed misleading note, works with ct_picture)
(17 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|CTRLSETSCALE]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|CTRLSETSCALE]]
____________________________________________________________________________________________


| arma |= Game name


<h2 style="color:#000066">'''''control'' ctrlSetScale ''scale'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Sets wanted scale for control animation. Top left corner remains same. This command requires [[ctrlCommit]].|= Description
____________________________________________________________________________________________


'''Operand types:'''
| control '''ctrlSetScale''' scale |= Syntax


'''control''': [[Control]]
|p1= control: [[Control]] |= Parameter 1
   
'''scale''': [[Number]]


'''Type of returned value:'''
|p2= scale: [[Number]] |= Parameter 2


[[Nothing]]
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <code>_control [[ctrlSetScale]] 0.5;
_control [[ctrlCommit]] 0;</code> |= Example 1
____________________________________________________________________________________________


'''Compatibility:'''
| [[ctrlScale]], [[ctrlModelScale]], [[ctrlSetModelScale]] |= See also


Version 2.50 required.
}}


'''Description:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
</dl>


Sets wanted scale for control animation.
<h3 style="display:none">Bottom Section</h3>


'''Example''':
[[Category:Scripting Commands|CTRLSETSCALE]]
   
[[Category:Scripting Commands ArmA|CTRLSETSCALE]]
_control '''ctrlScale''' 0.5
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 17:27, 25 March 2016

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

Description

Description:
Sets wanted scale for control animation. Top left corner remains same. This command requires ctrlCommit.
Groups:
Uncategorised

Syntax

Syntax:
control ctrlSetScale scale
Parameters:
control: Control
scale: Number
Return Value:
Nothing

Examples

Example 1:
_control ctrlSetScale 0.5; _control ctrlCommit 0;

Additional Information

See also:
ctrlScalectrlModelScalectrlSetModelScale

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

Bottom Section