ctrlSetScale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(updated description and example, removed misleading note, works with ct_picture)
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| control '''ctrlSetScale''' scale |= Syntax
| control '''ctrlSetScale''' scale |SYNTAX=


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


|p2= scale: [[Number]] |= Parameter 2
|p2= scale: [[Number]] |PARAMETER2=


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


| [[ctrlScale]], [[ctrlModelScale]], [[ctrlSetModelScale]] |= See also
| [[ctrlScale]], [[ctrlModelScale]], [[ctrlSetModelScale]] |SEEALSO=


}}
}}

Revision as of 14:36, 7 April 2019

-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