ctrlAngle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
mNo edit summary
 
(17 intermediate revisions by 3 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


|gr1= GUI Control |GROUP1=
|descr= Gets rotation info of a control set as {{hl|ST_PICTURE}}. Supported control types:
____________________________________________________________________________________________
* [[CT_STATIC]]
* [[CT_ACTIVETEXT]] (Since Arma 3 v2.09.149642)


| Gets rotation info of an <tt>ST_PICTURE</tt> control. |DESCRIPTION=
|s1= [[ctrlAngle]] control
____________________________________________________________________________________________


| [[ctrlAngle]] control |SYNTAX=
|p1= control : [[Control]] - picture control


|p1= control : [[Control]] - picture control |PARAMETER1=
|r1= [[Array]] of [[Number]]s in format [angle, centerX, centerY]


| [[Array]] - format [angle, centerX, centerY]
|x1= <sqf>ctrlAngle _control;</sqf>
|RETURNVALUE=


 
|seealso= [[ctrlSetAngle]]
|x1= <code>[[ctrlAngle]] _control;</code>|EXAMPLE1=
____________________________________________________________________________________________
 
| [[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>
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 22:26, 28 September 2023

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