ctrlAngle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Some wiki formatting)
 
(29 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


|arma3|= Game name
|game1= arma3
|version1= 1.52


|1.52|= Game version
|gr1= GUI Control - Positioning
____________________________________________________________________________________________


| Gets rotation info of an <tt>ST_PICTURE</tt> control. |DESCRIPTION=
|descr= Gets rotation info of a control set as {{hl|ST_PICTURE}}. Supported control types:
____________________________________________________________________________________________
* [[CT_STATIC]]
* {{GVI|arma3|2.10|size= 0.75}} [[CT_ACTIVETEXT]]


| [[ctrlAngle]] control |SYNTAX=
|s1= [[ctrlAngle]] control


|p1= control : [[Control]]  - picture control |PARAMETER1=
|p1= control : [[Control]]  - picture control


| [[Array]] - format [angle, centerX, centerY]
|r1= [[Array]] of [[Number]]s in format [angle, centerX, centerY]
|RETURNVALUE=


|x1= <sqf>ctrlAngle _control;</sqf>


|x1= <code>[[ctrlAngle]] _control;</code>|EXAMPLE1=
|seealso= [[ctrlSetAngle]]
____________________________________________________________________________________________
 
| [[ctrlSetAngle]] |SEEALSO=
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<!-- DISCONTINUE Notes -->
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]

Latest revision as of 22:40, 30 June 2024

Hover & click on the images for description

Description

Description:
Gets rotation info of a control set as ST_PICTURE. Supported control types:
Groups:
GUI Control - Positioning

Syntax

Syntax:
ctrlAngle control
Parameters:
control : Control - picture control
Return Value:
Array of Numbers in format [angle, centerX, centerY]

Examples

Example 1:
ctrlAngle _control;

Additional Information

See also:
ctrlSetAngle

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